mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 07:50:57 +01:00
Minor, if we fatal before loading PhabricatorAccessLog, don't double-fatal.
This commit is contained in:
parent
631718f99e
commit
5604a662df
1 changed files with 9 additions and 7 deletions
|
@ -347,13 +347,15 @@ function phabricator_shutdown() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function phabricator_fatal($msg) {
|
function phabricator_fatal($msg) {
|
||||||
$log = PhabricatorAccessLog::getLog();
|
if (class_exists('PhabricatorAccessLog', false)) {
|
||||||
if ($log) {
|
$log = PhabricatorAccessLog::getLog();
|
||||||
$log->setData(
|
if ($log) {
|
||||||
array(
|
$log->setData(
|
||||||
'c' => 500,
|
array(
|
||||||
));
|
'c' => 500,
|
||||||
$log->write();
|
));
|
||||||
|
$log->write();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
header(
|
header(
|
||||||
|
|
Loading…
Reference in a new issue