From e283fcf261206a8296515c7196042db11352a19b Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 21 Nov 2022 03:53:40 +0300 Subject: lws: fix include order for correct spl autoload --- localwebsite/init.php | 4 ++-- 1 file 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) { -- cgit v1.2.3