Migrated fix with DynamicConfig installed flag to CLI

This commit is contained in:
Lucas Bartholemy 2024-10-24 19:29:48 +02:00
parent 12973ab474
commit 2f3862893c

View File

@ -13,7 +13,7 @@ $dotenv = Dotenv\Dotenv::createImmutable(__DIR__ . '/../', '.env');
$dotenv->safeLoad();
$dynamicConfig = (is_readable(__DIR__ . '/config/dynamic.php')) ? require(__DIR__ . '/config/dynamic.php') : [];
$debug = !!($_ENV['HUMHUB_DEBUG'] ?? false) || !$dynamicConfig['params']['installed'];
$debug = !!($_ENV['HUMHUB_DEBUG'] ?? false) || !($dynamicConfig['params']['installed'] ?? false);
defined('YII_DEBUG') or define('YII_DEBUG', $debug);