mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Hardcoding SiteTree::, there's no need for this to be configurable
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@92568 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
84125b4416
commit
6ff35958ca
@ -153,11 +153,6 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
*/
|
||||
static $single_instance_only = false;
|
||||
|
||||
/**
|
||||
* This is used as a CSS class to indicate a sitetree node is a single_instance_only page type
|
||||
*/
|
||||
static $single_instance_only_css_class = 'singleinstanceonly';
|
||||
|
||||
/**
|
||||
* Icon to use in the CMS
|
||||
*
|
||||
@ -2236,7 +2231,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
||||
$classes .= " notinmenu";
|
||||
|
||||
if($this->stat('single_instance_only'))
|
||||
$classes .= " " . $this->stat('single_instance_only_css_class');
|
||||
$classes .= " singleinstance";
|
||||
|
||||
//TODO: Add integration
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user