diff --git a/src/Extensions/LeftAndMainSubsites.php b/src/Extensions/LeftAndMainSubsites.php index 733b092d..a12d1e01 100644 --- a/src/Extensions/LeftAndMainSubsites.php +++ b/src/Extensions/LeftAndMainSubsites.php @@ -41,7 +41,7 @@ class LeftAndMainSubsites extends LeftAndMainExtension */ private static $treats_subsite_0_as_global = false; - public function init() + protected function onInit() { Requirements::css('silverstripe/subsites:client/dist/styles/LeftAndMain_Subsites.css'); Requirements::javascript('silverstripe/subsites:client/dist/js/LeftAndMain_Subsites.js'); diff --git a/src/Extensions/SiteTreeSubsites.php b/src/Extensions/SiteTreeSubsites.php index 94008cd7..4a17c4f4 100644 --- a/src/Extensions/SiteTreeSubsites.php +++ b/src/Extensions/SiteTreeSubsites.php @@ -445,7 +445,7 @@ protected function updatePreviewLink(&$link, $action = null) * @param $tags * @return string */ - public function MetaTags(&$tags) + protected function updateMetaTags(&$tags) { if ($this->owner->SubsiteID) { $tags .= '\n";