X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FMaintenance.php;h=57a452ade79d4b4154f474c8f704f25ecb2faed7;hb=dd534919d7e3af010bbc2477e3d0e89a47dd0872;hp=d13c5fe02762bfb70bf8b4a58be509b6eadca5a8;hpb=714f0febc4918f5569eb09f8800b6739cff36347;p=friendica.git diff --git a/src/Module/Maintenance.php b/src/Module/Maintenance.php index d13c5fe027..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');