Skip to content

Commit

Permalink
Merge pull request #1977 from mnoskov/patch-3
Browse files Browse the repository at this point in the history
fix install
  • Loading branch information
Dmi3yy authored Jun 9, 2021
2 parents 4b7c022 + 593bebd commit d73ad47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/AbstractLaravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@ public function __construct()
throw new \Exception('Unable to load the "app" configuration file.');
}

$this['env'] = $this['config']->get('app.env', 'production');
if (defined('IN_INSTALL_MODE')) {
$this['env'] = 'install';
} else {
$this['env'] = $this['config']->get('app.env', 'production');
}

date_default_timezone_set($config->get('app.timezone', 'UTC'));
mb_internal_encoding('UTF-8');
Expand Down

0 comments on commit d73ad47

Please sign in to comment.