From d4b5ae82df3395ad2b622e81598f535fb3a2d107 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 18 May 2013 23:37:39 +0200 Subject: [PATCH] Fixed frontend link in ACP menu --- wcfsetup/install/files/acp/templates/header.tpl | 6 ++++-- .../files/lib/data/page/menu/item/PageMenuItem.class.php | 2 +- wcfsetup/install/lang/de.xml | 1 + wcfsetup/install/lang/en.xml | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index b9dd0e7c53..b7409c7c61 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -119,8 +119,10 @@ diff --git a/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItem.class.php b/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItem.class.php index e3b4470ba5..ec4b6fdf6d 100644 --- a/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItem.class.php +++ b/wcfsetup/install/files/lib/data/page/menu/item/PageMenuItem.class.php @@ -66,7 +66,7 @@ class PageMenuItem extends ProcessibleDatabaseObject implements ITreeMenuItem { } $this->parseController(); - return LinkHandler::getInstance()->getLink($this->controller, array('application' => $this->application), WCF::getLanguage()->get($this->menuItemLink)); + return LinkHandler::getInstance()->getLink($this->controller, array('application' => $this->application, 'forceFrontend' => true), WCF::getLanguage()->get($this->menuItemLink)); } /** diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index e8f9dd5e2f..5b83e959c8 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -1080,6 +1080,7 @@ + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 3a0e8f0a19..7d5fa43ac9 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -1080,6 +1080,7 @@ + -- 2.20.1