From: Tim Düsterhus Date: Sat, 15 Mar 2014 21:06:53 +0000 (+0100) Subject: Send proper HTTP status in offline mode X-Git-Tag: 2.0.4~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1e49ebbcc50d6263eae8e757afd169f507bdd8ab;p=GitHub%2FWoltLab%2FWCF.git Send proper HTTP status in offline mode --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 078e72601e..83058eaf44 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -93,6 +93,7 @@ class RequestHandler extends SingletonFactory { throw new AJAXException(WCF::getLanguage()->get('wcf.ajax.error.permissionDenied'), AJAXException::INSUFFICIENT_PERMISSIONS); } else { + @header('HTTP/1.1 503 Service Unavailable'); WCF::getTPL()->assign(array( 'templateName' => 'offline' ));