HOR-1750
This commit is contained in:
@@ -26,14 +26,14 @@ class ControlUnderUpdating implements iAuthenticate
|
|||||||
$underUpdating = \Bootstrap::isPMUnderUpdating();
|
$underUpdating = \Bootstrap::isPMUnderUpdating();
|
||||||
if ($underUpdating['action']) {
|
if ($underUpdating['action']) {
|
||||||
$sysTemp = true;
|
$sysTemp = true;
|
||||||
if (defined("SYS_TEMP")) {
|
if (defined('SYS_TEMP')) {
|
||||||
$sysTemp = $underUpdating['workspace'] == SYS_TEMP;
|
$sysTemp = $underUpdating['workspace'] == SYS_TEMP;
|
||||||
}
|
}
|
||||||
if ($underUpdating['workspace'] == "true" || $sysTemp) {
|
if ($underUpdating['workspace'] == 'true' || $sysTemp) {
|
||||||
$message = 'The server is currently unable to handle the request '
|
$message = 'The server is currently unable to handle the request '
|
||||||
. 'due to a temporary overloading or maintenance of the '
|
. 'due to temporary overloading or server maintenance ('
|
||||||
. 'server (An application update has probably been '
|
. 'an application update has probably been performed on '
|
||||||
. 'performed on the server).';
|
. 'the server)';
|
||||||
throw new RestException(503, $message);
|
throw new RestException(503, $message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user