mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
MINOR Return NULL from LeftAndMainSubsites->getCMSTreeTitle() if not in a subsite to allow the CMS to fall back to default values
This commit is contained in:
parent
8e7c260fd6
commit
5d5c26cc16
@ -21,7 +21,7 @@ class LeftAndMainSubsites extends Extension {
|
||||
*/
|
||||
function getCMSTreeTitle() {
|
||||
$subsite = Subsite::currentSubSite();
|
||||
return $subsite ? $subsite->Title : 'Site Content';
|
||||
return $subsite ? $subsite->Title : null;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user