From c423439fa86a7862b319219a9244f1e77a6628d3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 24 Jan 2014 22:35:25 +0100 Subject: [PATCH] Forwarding link creation to landing page's processor --- .../files/lib/system/request/LinkHandler.class.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php index 0e2768f93a..a17efca749 100644 --- a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php @@ -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(); } } -- 2.20.1