mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 22:53:37 +08:00
Read debug mode from config
This commit is contained in:
parent
ba776bb20f
commit
c7226d1543
|
@ -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