diff --git a/framework/core/src/Core.php b/framework/core/src/Core.php index 6b0a58ffd..1c6aaa266 100644 --- a/framework/core/src/Core.php +++ b/framework/core/src/Core.php @@ -9,7 +9,7 @@ class Core public static function inDebugMode() { - return env('APP_DEBUG'); + return app('flarum.config')['debug']; } public static function config($key, $default = null)