mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
f96dceecc9
commit
3d4d4d0c42
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user