From c7226d1543fc97cace25ed894dd05070e5ae04d7 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 1 Jul 2015 22:49:38 +0200 Subject: [PATCH] Read debug mode from config --- framework/core/src/Core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)