stop ENABLED_MODS

This commit is contained in:
Shish 2020-01-27 20:00:23 +00:00
parent 59c89ee135
commit af48aa504b
3 changed files with 1 additions and 3 deletions

View file

@ -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");

View file

@ -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")
));
}

View file

@ -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);