From: Marcel Werk Date: Sun, 8 Jan 2017 11:22:27 +0000 (+0100) Subject: Hide disabled pages in list of parent pages X-Git-Tag: 3.0.0~16^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85292a80bf9764aa943c63a91ed8cffe4d8a0b62;p=GitHub%2FWoltLab%2FWCF.git Hide disabled pages in list of parent pages --- diff --git a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php index dc74dab401..66db41e41e 100644 --- a/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php +++ b/wcfsetup/install/files/lib/system/page/PageLocationManager.class.php @@ -139,6 +139,8 @@ class PageLocationManager extends SingletonFactory { $page = PageCache::getInstance()->getPage($location['pageID']); while ($page !== null && $page->parentPageID) { $page = PageCache::getInstance()->getPage($page->parentPageID); + if (!$page->isVisible()) continue; + if ($page->isLandingPage) { $title = WCF::getLanguage()->get(PAGE_TITLE); }