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:
Sam Minnee 2008-02-19 00:39:45 +00:00
parent f1ba46ce42
commit f11383c2fa

View File

@ -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;