diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/RequestDispatcher.php | 4 | ||||
-rw-r--r-- | engine/logging.php | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/engine/RequestDispatcher.php b/engine/RequestDispatcher.php index 3c3f684..ec31516 100644 --- a/engine/RequestDispatcher.php +++ b/engine/RequestDispatcher.php @@ -39,8 +39,8 @@ class RequestDispatcher { } $skin = new Skin(); - $skin->static[] = '/css/common.css'; - $skin->static[] = '/js/common.js'; + $skin->static[] = 'css/common.css'; + $skin->static[] = 'js/common.js'; $lang = LangData::getInstance(); $skin->addLangKeys($lang->search('/^theme_/')); diff --git a/engine/logging.php b/engine/logging.php index 1bc946b..24803cf 100644 --- a/engine/logging.php +++ b/engine/logging.php @@ -72,6 +72,9 @@ class logging { } public static function logCustom(LogLevel $level, ...$args): void { + global $config; + if (!$config['is_dev'] && $level == LogLevel::DEBUG) + return; self::write($level, self::strVars($args)); } |