mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
Fix __init_script__.php issue with event engine.
This commit is contained in:
parent
522e5b4779
commit
fc5cc180ab
2 changed files with 2 additions and 1 deletions
|
@ -42,8 +42,10 @@ foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
||||||
}
|
}
|
||||||
|
|
||||||
PhutilErrorHandler::initialize();
|
PhutilErrorHandler::initialize();
|
||||||
|
PhabricatorEventEngine::initialize();
|
||||||
|
|
||||||
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
||||||
if ($tz) {
|
if ($tz) {
|
||||||
date_default_timezone_set($tz);
|
date_default_timezone_set($tz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
// NOTE: This is dangerous in general, but we know we're in a script context and
|
||||||
// are not vulnerable to CSRF.
|
// are not vulnerable to CSRF.
|
||||||
AphrontWriteGuard::allowDangerousUnguardedWrites(true);
|
AphrontWriteGuard::allowDangerousUnguardedWrites(true);
|
||||||
PhabricatorEventEngine::initialize();
|
|
||||||
|
|
Loading…
Reference in a new issue