From af48aa504bc77235a46f4814724af7050f09d8bd Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 27 Jan 2020 20:00:23 +0000 Subject: [PATCH] stop ENABLED_MODS --- core/sys_config.php | 1 - core/util.php | 2 +- tests/defines.php | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/sys_config.php b/core/sys_config.php index 80d1cc59..1c24ef4d 100644 --- a/core/sys_config.php +++ b/core/sys_config.php @@ -34,4 +34,3 @@ _d("EXTRA_EXTS", ""); // string optional extra extensions _d("BASE_URL", null); // string force a specific base URL (default is auto-detect) _d("TRACE_FILE", null); // string file to log performance data into _d("TRACE_THRESHOLD", 0.0); // float log pages which take more time than this many seconds -_d("ENABLED_MODS", "imageboard"); diff --git a/core/util.php b/core/util.php index 8ed06f0c..e3c32839 100644 --- a/core/util.php +++ b/core/util.php @@ -480,7 +480,7 @@ function require_all(array $files): void { function _load_core_files() { require_all(array_merge( zglob("core/*.php"), - zglob("core/{".ENABLED_MODS."}/*.php"), + zglob("core/imageboard/*.php"), zglob("ext/*/info.php") )); } diff --git a/tests/defines.php b/tests/defines.php index 4ee04c1f..7332fe8a 100644 --- a/tests/defines.php +++ b/tests/defines.php @@ -16,7 +16,6 @@ define("VERSION", '2.8-dev'); define("BASE_URL", null); define("TRACE_FILE", null); define("TRACE_THRESHOLD", 0.0); -define("ENABLED_MODS", "imageboard"); define("TIMEZONE", 'UTC'); define("BASE_HREF", "/"); define("CLI_LOG_LEVEL", 50);