mirror of
https://github.com/humhub/humhub.git
synced 2025-04-21 23:52:04 +02:00
.env change - Installer - PHP Warnings (#7238)
* .env change - Installer - PHP Warnings #404 * .env change - Installer - PHP Warnings
This commit is contained in:
parent
5899616837
commit
69adb4a633
@ -39,6 +39,7 @@ HumHub Changelog
|
||||
- Enh #7231: Removed deprecated `ShowMorePager` widget
|
||||
- Fix #7230: Update module with new id
|
||||
- Enh #7233: Mobile view: enlarge images in gallery preview of entries for the wall stream
|
||||
- Enh #7238: Fixed PHP warning related to `.env`
|
||||
|
||||
1.16.3 (Unreleased)
|
||||
--------------------------
|
||||
|
@ -12,7 +12,7 @@ $dotenv = Dotenv\Dotenv::createImmutable(__DIR__, '.env');
|
||||
$dotenv->safeLoad();
|
||||
|
||||
$dynamicConfig = (is_readable(__DIR__ . '/protected/config/dynamic.php')) ? require(__DIR__ . '/protected/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);
|
||||
defined('YII_ENV') or define('YII_ENV', $debug ? 'dev' : 'prod');
|
||||
|
Loading…
x
Reference in New Issue
Block a user