summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-11-21 03:53:40 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-11-21 03:53:40 +0300
commite283fcf261206a8296515c7196042db11352a19b (patch)
tree10565b59f49b23ab6cccb5316d901c095a8d8e4e
parent35eec7f8126801a02008d405624927099ca53e5e (diff)
lws: fix include order for correct spl autoload
-rw-r--r--localwebsite/init.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/localwebsite/init.php b/localwebsite/init.php
index 4f6113f..4620ed2 100644
--- a/localwebsite/init.php
+++ b/localwebsite/init.php
@@ -44,13 +44,13 @@ define('START_TIME', microtime(true));
set_include_path(get_include_path().PATH_SEPARATOR.ROOT);
+require_once ROOT.'/functions.php';
+
$config = require ROOT.'/config.php';
if (!is_file(ROOT.'/config.local.php'))
die('config.local.php not found');
$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
$debug = debug::getInstance(
function($errno, $errfile, $errlne, $errstr) {