mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
API CHANGE Re-added SiteTreeSubsites::isMainSite() method which was incorrectly removed in r100324
This commit is contained in:
parent
05a4bfdaca
commit
b8213d368a
@ -46,6 +46,11 @@ class SiteTreeSubsites extends SiteTreeDecorator {
|
||||
);
|
||||
}
|
||||
|
||||
function isMainSite() {
|
||||
if($this->owner->SubsiteID == 0) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update any requests to limit the results to the current site
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user