mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Read debug mode from config
This commit is contained in:
parent
1e04a20220
commit
03fd4a5aba
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user