Skip landing page check for ACP requests
authorAlexander Ebert <ebert@woltlab.com>
Wed, 6 Apr 2016 09:54:03 +0000 (11:54 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 6 Apr 2016 09:54:10 +0000 (11:54 +0200)
wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 6cfcb74e3bec6250a016e9e4d8fac44024a8e9d8..aa03efa7a9e6db825535329c33607c3c7e1087fd 100644 (file)
@@ -168,9 +168,11 @@ class RequestHandler extends SingletonFactory {
                        
                        $this->activeRequest = new Request($classData['className'], $classData['controller'], $classData['pageType'], $metaData);
                        
-                       // determine if current request matches the landing page
-                       if (ControllerMap::getInstance()->isLandingPage($classData, $metaData)) {
-                               $this->activeRequest->setIsLandingPage();
+                       if (!$this->isACPRequest()) {
+                               // determine if current request matches the landing page
+                               if (ControllerMap::getInstance()->isLandingPage($classData, $metaData)) {
+                                       $this->activeRequest->setIsLandingPage();
+                               }
                        }
                }
                catch (SystemException $e) {