Skip to content

Commit

Permalink
API Standardise extension hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 18, 2024
1 parent ff1b8dd commit 1f75301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Extensions/LeftAndMainSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion src/Extensions/SiteTreeSubsites.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 .= '<meta name="x-subsite-id" content="' . $this->owner->SubsiteID . "\" />\n";
Expand Down

0 comments on commit 1f75301

Please sign in to comment.