Offline mode no longer loads special box layouts
authorMarcel Werk <burntime@woltlab.com>
Sat, 15 Oct 2016 10:21:18 +0000 (12:21 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 15 Oct 2016 10:21:18 +0000 (12:21 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index beee25f87f6df8f237a393070a9033e00d3e055b..0f90dc81606b693041a1a87e395a38c9183e6915 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\system\request;
 use wcf\system\application\ApplicationHandler;
+use wcf\system\box\BoxHandler;
 use wcf\system\exception\AJAXException;
 use wcf\system\exception\IllegalLinkException;
 use wcf\system\exception\NamedUserException;
@@ -77,6 +78,7 @@ class RequestHandler extends SingletonFactory {
                                        }
                                        else {
                                                @header('HTTP/1.1 503 Service Unavailable');
+                                               BoxHandler::getInstance()->disablePageLayout();
                                                WCF::getTPL()->assign([
                                                        'templateName' => 'offline',
                                                        'templateNameApplication' => 'wcf'