mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Issue #3774 Allow e107 to function without setting directories in e107_config.php
This commit is contained in:
@@ -229,7 +229,7 @@ if(isset($CLASS2_INCLUDE) && ($CLASS2_INCLUDE!=''))
|
|||||||
|
|
||||||
//define("MPREFIX", $mySQLprefix); moved to $e107->set_constants()
|
//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..
|
// e107_config.php is either empty, not valid or doesn't exist so redirect to installer..
|
||||||
header('Location: install.php');
|
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 :)
|
// 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;
|
$tmp = e_ROOT.$HANDLERS_DIRECTORY;
|
||||||
|
|
||||||
//Core functions - now API independent
|
//Core functions - now API independent
|
||||||
|
Reference in New Issue
Block a user