mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-01 13:48:24 +02:00
MINOR changed the method to get a page's siteconfig, it is now subsite aware. (from r89870) (from r96321)
This commit is contained in:
parent
c5dbb89137
commit
61649efe3e
@ -226,6 +226,10 @@ class SiteTreeSubsites extends SiteTreeDecorator {
|
|||||||
return $return->Count() > 0 ? $return : false;
|
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.
|
* Returns the RelatedPageLink objects that are reverse-associated with this page.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user