mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Added a docblock comment to alernateTreeTitle
This commit is contained in:
parent
9038b4c661
commit
a26e96d9ca
@ -15,7 +15,10 @@ class FileSubsites extends DataObjectDecorator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Amends the CMS tree title for folders in the Files & Images section.
|
||||||
|
* Prefixes a '* ' to the folders that are accessible from all subsites.
|
||||||
|
*/
|
||||||
function alternateTreeTitle() {
|
function alternateTreeTitle() {
|
||||||
if($this->owner->SubsiteID == 0) return " * " . $this->owner->Title;
|
if($this->owner->SubsiteID == 0) return " * " . $this->owner->Title;
|
||||||
else return $this->owner->Title;
|
else return $this->owner->Title;
|
||||||
|
Loading…
Reference in New Issue
Block a user