1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Fix __init_script__.php issue with event engine.

This commit is contained in:
epriestley 2011-09-30 13:17:45 -07:00
parent 522e5b4779
commit fc5cc180ab
2 changed files with 2 additions and 1 deletions

View file

@ -42,8 +42,10 @@ foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
}
PhutilErrorHandler::initialize();
PhabricatorEventEngine::initialize();
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
if ($tz) {
date_default_timezone_set($tz);
}

View file

@ -33,4 +33,3 @@ phutil_load_library(dirname(__FILE__).'/../src/');
// NOTE: This is dangerous in general, but we know we're in a script context and
// are not vulnerable to CSRF.
AphrontWriteGuard::allowDangerousUnguardedWrites(true);
PhabricatorEventEngine::initialize();