From 85292a80bf9764aa943c63a91ed8cffe4d8a0b62 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sun, 8 Jan 2017 12:22:27 +0100 Subject: [PATCH] Hide disabled pages in list of parent pages --- .../install/files/lib/system/page/PageLocationManager.class.php | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.20.1