Forwarding link creation to landing page's processor
authorAlexander Ebert <ebert@woltlab.com>
Fri, 24 Jan 2014 21:35:25 +0000 (22:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 24 Jan 2014 21:35:25 +0000 (22:35 +0100)
wcfsetup/install/files/lib/system/request/LinkHandler.class.php

index 0e2768f93adbac4e79af191623a8aeed9eb31a2e..a17efca749ab3f84e660a332a0ae1cadd89fc6c6 100644 (file)
@@ -2,7 +2,6 @@
 namespace wcf\system\request;
 use wcf\data\DatabaseObjectDecorator;
 use wcf\system\application\ApplicationHandler;
-use wcf\system\menu\page\IPageMenuItemProvider;
 use wcf\system\menu\page\PageMenu;
 use wcf\system\request\RouteHandler;
 use wcf\system\Regex;
@@ -119,16 +118,7 @@ class LinkHandler extends SingletonFactory {
                                $controller = 'Index';
                        }
                        else {
-                               // build link to landing page
-                               $landingPage = PageMenu::getInstance()->getLandingPage();
-                               if ($landingPage instanceof IPageMenuItemProvider) {
-                                       return $landingPage->getLink();
-                               }
-                               else {
-                                       $controller = $landingPage->getController();
-                                       $abbreviation = $landingPage->getApplication();
-                                       $url = $landingPage->menuItemLink;
-                               }
+                               return PageMenu::getInstance()->getLandingPage()->getProcessor()->getLink();
                        }
                }