protected $boxesByPosition = [];
/**
- * @var bool
+ * @var boolean
*/
- protected $disablePageLayout = false;
+ protected static $disablePageLayout = false;
/**
* @inheritDoc
protected function init() {
// get active page id
$pageID = 0;
- if (!$this->disablePageLayout) {
+ if (!self::$disablePageLayout) {
if (($request = RequestHandler::getInstance()->getActiveRequest()) !== null) {
$pageID = $request->getPageID();
}
/**
* Disables the loading of the box layout for the active page.
*/
- public function disablePageLayout() {
- $this->disablePageLayout = true;
+ public static function disablePageLayout() {
+ self::$disablePageLayout = true;
}
}
}
else {
@header('HTTP/1.1 503 Service Unavailable');
- BoxHandler::getInstance()->disablePageLayout();
+ BoxHandler::disablePageLayout();
WCF::getTPL()->assign([
'templateName' => 'offline',
'templateNameApplication' => 'wcf'