From: Alexander Ebert Date: Fri, 24 Jan 2014 21:35:25 +0000 (+0100) Subject: Forwarding link creation to landing page's processor X-Git-Tag: 2.0.2~13^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c423439fa86a7862b319219a9244f1e77a6628d3;p=GitHub%2FWoltLab%2FWCF.git Forwarding link creation to landing page's processor --- 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(); } }