From: Marcel Werk Date: Mon, 19 May 2014 12:48:41 +0000 (+0200) Subject: Added breadcrumbs item X-Git-Tag: 2.1.0_Alpha_1~812 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=78edd448bc902de8bebb2d8bf49a9b6843a6634a;p=GitHub%2FWoltLab%2FWCF.git Added breadcrumbs item --- diff --git a/wcfsetup/install/files/lib/page/SearchResultPage.class.php b/wcfsetup/install/files/lib/page/SearchResultPage.class.php index 07453a94dc..0542de93d8 100644 --- a/wcfsetup/install/files/lib/page/SearchResultPage.class.php +++ b/wcfsetup/install/files/lib/page/SearchResultPage.class.php @@ -2,10 +2,12 @@ namespace wcf\page; use wcf\data\search\ISearchResultObject; use wcf\data\search\Search; +use wcf\system\breadcrumb\Breadcrumb; use wcf\system\event\EventHandler; use wcf\system\exception\IllegalLinkException; use wcf\system\exception\SystemException; use wcf\system\menu\page\PageMenu; +use wcf\system\request\LinkHandler; use wcf\system\search\SearchEngine; use wcf\system\WCF; @@ -106,6 +108,9 @@ class SearchResultPage extends MultipleLinkPage { PageMenu::getInstance()->setActiveMenuItem($activeMenuItem); } } + + // add breadcrumbs + WCF::getBreadcrumbs()->add(new Breadcrumb(WCF::getLanguage()->get('wcf.search.title'), LinkHandler::getInstance()->getLink('Search'))); } /**