diff --git a/code/SiteTreeSubsites.php b/code/SiteTreeSubsites.php index 03f7b6f..0166353 100644 --- a/code/SiteTreeSubsites.php +++ b/code/SiteTreeSubsites.php @@ -226,6 +226,10 @@ class SiteTreeSubsites extends SiteTreeDecorator { return $return->Count() > 0 ? $return : false; } + function alternateSiteConfig() { + return DataObject::get_one('SiteConfig', 'SubsiteID = ' . $this->owner->SubsiteID); + } + /** * Returns the RelatedPageLink objects that are reverse-associated with this page. */