MINOR changed the method to get a page's siteconfig, it is now subsite aware. (from r89870) (from r96321)

This commit is contained in:
Tom Rix 2010-03-01 22:27:21 +00:00
parent c5dbb89137
commit 61649efe3e

View File

@ -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.
*/