From 61649efe3eef6dc381206fed1664f9379badc639 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Mon, 1 Mar 2010 22:27:21 +0000 Subject: [PATCH] MINOR changed the method to get a page's siteconfig, it is now subsite aware. (from r89870) (from r96321) --- code/SiteTreeSubsites.php | 4 ++++ 1 file changed, 4 insertions(+) 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. */