From a18b707e96b8e8e610dce8eb9aa6fabf3d0c5301 Mon Sep 17 00:00:00 2001 From: mychidarko Date: Mon, 3 Oct 2022 22:45:46 +0000 Subject: [PATCH] fix: remove mode --- src/Router/Core.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Router/Core.php b/src/Router/Core.php index e3bcd40..1464511 100644 --- a/src/Router/Core.php +++ b/src/Router/Core.php @@ -326,8 +326,8 @@ public static function run(?callable $callback = null) if (class_exists('Leaf\App')) { $config = array_merge($config, [ 'mode' => \Leaf\Config::get('mode'), - 'app.down' => \Leaf\Anchor::toBool(\Leaf\Config::get('app.down')), - 'debug' => \Leaf\Anchor::toBool(\Leaf\Config::get('debug')) ?? \Leaf\Config::get('mode') !== 'production', + 'app.down' => \Leaf\Anchor::toBool(\Leaf\Config::get('app.down')) ?? false, + 'debug' => \Leaf\Anchor::toBool(\Leaf\Config::get('debug')) ?? false, ]); }