mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Minor, fix initialization order so config initialization does not fatal on phlog().
This commit is contained in:
parent
00f730d6e9
commit
9e2ec82094
1 changed files with 3 additions and 3 deletions
6
src/infrastructure/env/PhabricatorEnv.php
vendored
6
src/infrastructure/env/PhabricatorEnv.php
vendored
|
@ -103,10 +103,10 @@ final class PhabricatorEnv {
|
|||
|
||||
|
||||
private static function initializeCommonEnvironment() {
|
||||
self::buildConfigurationSourceStack();
|
||||
|
||||
PhutilErrorHandler::initialize();
|
||||
|
||||
self::buildConfigurationSourceStack();
|
||||
|
||||
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
||||
if ($tz) {
|
||||
date_default_timezone_set($tz);
|
||||
|
@ -156,7 +156,7 @@ final class PhabricatorEnv {
|
|||
$stack->pushSource(
|
||||
id(new PhabricatorConfigDatabaseSource('default'))
|
||||
->setName(pht("Database")));
|
||||
} catch (AphrontQueryException $recoverable) {
|
||||
} catch (AphrontQueryException $exception) {
|
||||
// If the database is not available, just skip this configuration
|
||||
// source. This happens during `bin/storage upgrade`, `bin/conf` before
|
||||
// schema setup, etc.
|
||||
|
|
Loading…
Reference in a new issue