diff --git a/code/Controllers/LeftAndMainPageIconsExtension.php b/code/Controllers/LeftAndMainPageIconsExtension.php index e962322f06..ed0e7e69fd 100644 --- a/code/Controllers/LeftAndMainPageIconsExtension.php +++ b/code/Controllers/LeftAndMainPageIconsExtension.php @@ -26,7 +26,7 @@ class LeftAndMainPageIconsExtension extends Extension implements Flushable * @throws InvalidArgumentException * @throws ReflectionException */ - public function init() + protected function onInit() { Requirements::customCSS($this->generatePageIconsCss(), CMSMain::PAGE_ICONS_ID); } diff --git a/code/Model/SiteTree.php b/code/Model/SiteTree.php index 5d33539ad7..2aa0815299 100755 --- a/code/Model/SiteTree.php +++ b/code/Model/SiteTree.php @@ -1509,7 +1509,7 @@ public function MetaComponents() ]; } - $this->extend('MetaComponents', $tags); + $this->extend('updateMetaComponents', $tags); return $tags; } @@ -1613,7 +1613,7 @@ public function MetaTags($includeTitle = true) $tagString .= $this->obj('ExtraMeta')->forTemplate(); } - $this->extend('MetaTags', $tagString); + $this->extend('updateMetaTags', $tagString); return $tagString; }