Send proper HTTP status in offline mode
authorTim Düsterhus <timwolla@googlemail.com>
Sat, 15 Mar 2014 21:06:53 +0000 (22:06 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Sat, 15 Mar 2014 21:06:53 +0000 (22:06 +0100)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 078e72601e90e0d8debde43f90a1f61696b219b2..83058eaf44a2e0fe5d4442912873901ed2b038aa 100644 (file)
@@ -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'
                                        ));