mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Removed unnecessary variable declaration in SiteTree (thanks mattclegg)
This commit is contained in:
parent
7a80e6d2ea
commit
9540e248e7
@ -635,7 +635,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
&& (!$stopAtPageType || $page->ClassName != $stopAtPageType)
|
||||
) {
|
||||
if($showHidden || $page->ShowInMenus || ($page->ID == $this->ID)) {
|
||||
if($page->URLSegment == 'home') $hasHome = true;
|
||||
if(($page->ID == $this->ID) || $unlinked) {
|
||||
$parts[] = Convert::raw2xml($page->Title);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user