lws: fix include order for correct spl autoload
This commit is contained in:
parent
35eec7f812
commit
e283fcf261
@ -44,13 +44,13 @@ define('START_TIME', microtime(true));
|
|||||||
|
|
||||||
set_include_path(get_include_path().PATH_SEPARATOR.ROOT);
|
set_include_path(get_include_path().PATH_SEPARATOR.ROOT);
|
||||||
|
|
||||||
|
require_once ROOT.'/functions.php';
|
||||||
|
|
||||||
$config = require ROOT.'/config.php';
|
$config = require ROOT.'/config.php';
|
||||||
if (!is_file(ROOT.'/config.local.php'))
|
if (!is_file(ROOT.'/config.local.php'))
|
||||||
die('config.local.php not found');
|
die('config.local.php not found');
|
||||||
$config = array_merge($config, require_once ROOT.'/config.local.php');
|
$config = array_merge($config, require_once ROOT.'/config.local.php');
|
||||||
|
|
||||||
require_once ROOT.'/functions.php';
|
|
||||||
|
|
||||||
// it's better to start logging as early as possible
|
// it's better to start logging as early as possible
|
||||||
$debug = debug::getInstance(
|
$debug = debug::getInstance(
|
||||||
function($errno, $errfile, $errlne, $errstr) {
|
function($errno, $errfile, $errlne, $errstr) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user