Fixed handling of i18n cms pages as landing pages
authorAlexander Ebert <ebert@woltlab.com>
Thu, 15 Dec 2016 03:05:19 +0000 (04:05 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 15 Dec 2016 03:05:19 +0000 (04:05 +0100)
wcfsetup/install/files/lib/system/request/ControllerMap.class.php

index 72578d66c0d5b2010222289391d0023db5621463..99f27da6d1d3f01346819b3ab1f4bb02beb08a67 100644 (file)
@@ -247,6 +247,10 @@ class ControllerMap extends SingletonFactory {
                                        return false;
                                }
                                else {
+                                       if ($matches['controller'] == $this->landingPages[$application][0] && isset($this->customUrls['lookup'][$application]['']) && $this->customUrls['lookup'][$application][''] !== $controller) {
+                                               return false;
+                                       }
+                                       
                                        $controller = $matches['controller'];
                                }
                        }