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;
else {
// build link to landing page
$landingPage = PageMenu::getInstance()->getLandingPage();
- $controller = $landingPage->getController();
- $abbreviation = $landingPage->getApplication();
- $url = $landingPage->menuItemLink;
+ if ($landingPage instanceof IPageMenuItemProvider) {
+ return $landingPage->getLink();
+ }
+ else {
+ $controller = $landingPage->getController();
+ $abbreviation = $landingPage->getApplication();
+ $url = $landingPage->menuItemLink;
+ }
}
}