diff --git a/code/SiteTreeSubsites.php b/code/SiteTreeSubsites.php index 6fcb77d..37efaed 100644 --- a/code/SiteTreeSubsites.php +++ b/code/SiteTreeSubsites.php @@ -224,6 +224,10 @@ class SiteTreeSubsites extends SiteTreeDecorator { return $return->Count() > 0 ? $return : false; } + function alternateSiteConfig() { + return DataObject::get_one('SiteConfig', 'SubsiteID = ' . $this->owner->SubsiteID); + } + /** * Only allow editing of a page if the member satisfies one of the following conditions: * - Is in a group which has access to the subsite this page belongs to