1
0
Fork 0
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:
epriestley 2013-01-18 11:29:08 -08:00
parent 00f730d6e9
commit 9e2ec82094

View file

@ -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.