BUGFIX: Fix broken breadcrumbs

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@63920 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Josh Kosmala 2008-10-09 00:28:36 +00:00
parent f96dceecc9
commit 3d4d4d0c42

View File

@ -440,7 +440,7 @@ class SiteTree extends DataObject {
while(
$page
&& (!$maxDepth || sizeof($parts) < $maxDepth)
&& ($stopAtPageType && $page->ClassName != $stopAtPageType)
&& (!$stopAtPageType || $page->ClassName != $stopAtPageType)
) {
if($showHidden || $page->ShowInMenus || ($page->ID == $this->ID)) {
if($page->URLSegment == 'home') $hasHome = true;