X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FMaintenance.php;h=57a452ade79d4b4154f474c8f704f25ecb2faed7;hb=3bca4fe2a64671d09e08346456cdfa6c12f996e9;hp=b695c53ab9bf741a98c294ab4302991cb50ca308;hpb=5aad46c7fb2b66d63ad93d92ee355fc522b57be1;p=friendica.git diff --git a/src/Module/Maintenance.php b/src/Module/Maintenance.php index b695c53ab9..57a452ade7 100644 --- a/src/Module/Maintenance.php +++ b/src/Module/Maintenance.php @@ -1,6 +1,6 @@ get('system', 'maintenance_reason'); + $reason = DI::config()->get('system', 'maintenance_reason') ?? ''; if ((substr(Strings::normaliseLink($reason), 0, 7) === 'http://') || (substr(Strings::normaliseLink($reason), 0, 8) === 'https://')) { @@ -45,7 +45,7 @@ class Maintenance extends BaseModule $exception = new HTTPException\ServiceUnavailableException($reason); - header($_SERVER["SERVER_PROTOCOL"] . ' ' . $exception->getCode() . ' ' . DI::l10n()->t('System down for maintenance')); + header($_SERVER['SERVER_PROTOCOL'] . ' ' . $exception->getCode() . ' ' . DI::l10n()->t('System down for maintenance')); $tpl = Renderer::getMarkupTemplate('exception.tpl');