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