Fixed title of landing page in breadcrumbs
authorMarcel Werk <burntime@woltlab.com>
Sun, 22 May 2016 20:17:19 +0000 (22:17 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 22 May 2016 20:17:19 +0000 (22:17 +0200)
wcfsetup/install/files/lib/system/breadcrumb/Breadcrumbs.class.php

index 0e9e0cbb3abffb5e09b206deef7e3637b4f79cac..fed75f170326fd77ffe6c3ff029573f657497efb 100644 (file)
@@ -3,6 +3,7 @@ namespace wcf\system\breadcrumb;
 use wcf\data\page\PageCache;
 use wcf\system\page\PageLocationManager;
 use wcf\system\SingletonFactory;
+use wcf\system\WCF;
 
 /**
  * Manages breadcrumbs.
@@ -102,7 +103,7 @@ class Breadcrumbs extends SingletonFactory implements \Countable, \Iterator {
                if ($addLandingPage) {
                        array_unshift($locations, [
                                'link' => $landingPage->getLink(),
-                               'title' => $landingPage->getTitle()
+                               'title' => WCF::getLanguage()->get(PAGE_TITLE)
                        ]);
                }