From 92b365ffc30a0e4343494407dd3b306d54e7aad0 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 17 May 2019 13:27:36 -0700 Subject: [PATCH] Issue #3774 Allow e107 to function without setting directories in e107_config.php --- class2.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/class2.php b/class2.php index 9c012f1287..0fd5624500 100755 --- a/class2.php +++ b/class2.php @@ -229,7 +229,7 @@ //define("MPREFIX", $mySQLprefix); moved to $e107->set_constants() -if(!isset($ADMIN_DIRECTORY)) +if(empty($mySQLdefaultdb)) { // e107_config.php is either empty, not valid or doesn't exist so redirect to installer.. header('Location: install.php'); @@ -246,6 +246,12 @@ // // clever stuff that figures out where the paths are on the fly.. no more need for hard-coded e_HTTP :) // + +if(empty($HANDLERS_DIRECTORY)) +{ + $HANDLERS_DIRECTORY = 'e107_handlers/'; +} + $tmp = e_ROOT.$HANDLERS_DIRECTORY; //Core functions - now API independent