1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +02:00

Read debug mode from config

This commit is contained in:
Franz Liedke
2015-07-01 22:49:38 +02:00
parent 1e04a20220
commit 03fd4a5aba

View File

@@ -9,7 +9,7 @@ class Core
public static function inDebugMode() public static function inDebugMode()
{ {
return env('APP_DEBUG'); return app('flarum.config')['debug'];
} }
public static function config($key, $default = null) public static function config($key, $default = null)