Skip to content

Commit

Permalink
Issue #3774 Allow e107 to function without setting directories in e10…
Browse files Browse the repository at this point in the history
…7_config.php
  • Loading branch information
CaMer0n committed May 17, 2019
1 parent 723f9f8 commit 92b365f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion class2.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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
Expand Down

0 comments on commit 92b365f

Please sign in to comment.