Added breadcrumbs item
authorMarcel Werk <burntime@woltlab.com>
Mon, 19 May 2014 12:48:41 +0000 (14:48 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 19 May 2014 12:48:41 +0000 (14:48 +0200)
wcfsetup/install/files/lib/page/SearchResultPage.class.php

index 07453a94dc07b79424f5a52c0b8866e4ae0b3d8b..0542de93d8c11b0cb4956cb238bb148596f70b50 100644 (file)
@@ -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')));
        }
        
        /**