1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Issue #3774 Allow e107 to function without setting directories in e107_config.php

This commit is contained in:
Cameron 2019-05-17 13:27:36 -07:00
parent 723f9f8b19
commit 92b365ffc3

View File

@ -229,7 +229,7 @@ if(isset($CLASS2_INCLUDE) && ($CLASS2_INCLUDE!=''))
//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 @@ unset($tmpPlugDir);
//
// 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