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:
Ingo Schommer 2010-01-26 20:45:05 +00:00
parent 8e7c260fd6
commit 5d5c26cc16

View File

@ -21,7 +21,7 @@ class LeftAndMainSubsites extends Extension {
*/
function getCMSTreeTitle() {
$subsite = Subsite::currentSubSite();
return $subsite ? $subsite->Title : 'Site Content';
return $subsite ? $subsite->Title : null;
}