mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merged revisions 48376 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/sapphire/branches/2.1.0-rc3oriwave2 ........ r48376 | sminnee | 2008-01-22 10:52:32 +1300 (Tue, 22 Jan 2008) | 1 line Moved CMS page-disabled logic into SiteTree::CMSTreeClasses(), so that it can be more easily customised for specific sites ........ git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49794 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f1ba46ce42
commit
f11383c2fa
@ -1415,6 +1415,9 @@ class SiteTree extends DataObject {
|
||||
if($controller->isCurrentPage($this))
|
||||
$classes .= " current";
|
||||
|
||||
if(!$this->canEdit() && !$this->canAddChildren())
|
||||
$classes .= " disabled";
|
||||
|
||||
$classes .= $this->markingClasses();
|
||||
|
||||
return $classes;
|
||||
|
Loading…
Reference in New Issue
Block a user