Fixed breadcrumbs title of the landing page
authorMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2019 11:14:43 +0000 (12:14 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2019 11:14:43 +0000 (12:14 +0100)
wcfsetup/install/files/lib/system/page/PageLocationManager.class.php

index 2bad24ae4a6b693a6de85a47d71f3d6833866493..0dddd3e39d247f94e352e32551cdc4ac321aca2e 100644 (file)
@@ -99,7 +99,7 @@ class PageLocationManager extends SingletonFactory {
                        $title = $page->getTitle();
                }
                
-               if ($page->isLandingPage) {
+               if ($page->isLandingPage && BREADCRUMBS_HOME_USE_PAGE_TITLE) {
                        $title = WCF::getLanguage()->get(PAGE_TITLE);
                }
                
@@ -141,7 +141,7 @@ class PageLocationManager extends SingletonFactory {
                                        $page = PageCache::getInstance()->getPage($page->parentPageID);
                                        if (!$page->isVisible()) continue;
                                        
-                                       if ($page->isLandingPage) {
+                                       if ($page->isLandingPage && BREADCRUMBS_HOME_USE_PAGE_TITLE) {
                                                $title = WCF::getLanguage()->get(PAGE_TITLE);
                                        }
                                        else {