1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00

Minor, if we fatal before loading PhabricatorAccessLog, don't double-fatal.

This commit is contained in:
epriestley 2012-05-03 13:24:00 -07:00
parent 631718f99e
commit 5604a662df

View file

@ -347,6 +347,7 @@ function phabricator_shutdown() {
} }
function phabricator_fatal($msg) { function phabricator_fatal($msg) {
if (class_exists('PhabricatorAccessLog', false)) {
$log = PhabricatorAccessLog::getLog(); $log = PhabricatorAccessLog::getLog();
if ($log) { if ($log) {
$log->setData( $log->setData(
@ -355,6 +356,7 @@ function phabricator_fatal($msg) {
)); ));
$log->write(); $log->write();
} }
}
header( header(
'Content-Type: text/plain; charset=utf-8', 'Content-Type: text/plain; charset=utf-8',