Hide disabled pages in list of parent pages
authorMarcel Werk <burntime@woltlab.com>
Sun, 8 Jan 2017 11:22:27 +0000 (12:22 +0100)
committerMarcel Werk <burntime@woltlab.com>
Sun, 8 Jan 2017 11:22:39 +0000 (12:22 +0100)
wcfsetup/install/files/lib/system/page/PageLocationManager.class.php

index dc74dab401b5b0ce896976d158531ef9cab625d0..66db41e41e5ccb271be6a01614880b5ea49101be 100644 (file)
@@ -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);
                                        }