Fix __init_script__.php issue with event engine.
This commit is contained in:
		| @@ -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(); |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 epriestley
					epriestley