mirror of
https://github.com/flarum/core.git
synced 2025-07-22 17:21:27 +02:00
Read debug mode from config
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user