Skip to content

Commit

Permalink
[BUGFIX] Replace use of deprecated method. (FluidTYPO3#1651)
Browse files Browse the repository at this point in the history
  • Loading branch information
datamints-off authored May 30, 2020
1 parent bb9ed61 commit 2cc47e2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Page/FooterViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ public function render()
return;
}
$content = $this->getContent();
$this->getPageRenderer()->addFooterData($content);
static::getPageRenderer()->addFooterData($content);
}
}
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Page/Header/CanonicalViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ public function render()
return $renderedTag;
}

static::getPageRenderer()->addMetaTag($renderedTag);
static::getPageRenderer()->addHeaderData($renderedTag);
}
}
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Page/Header/LinkViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ public function render()
if ('BE' === TYPO3_MODE) {
return;
}
static::getPageRenderer()->addMetaTag($this->renderTag($this->tagName));
static::getPageRenderer()->addHeaderData($this->renderTag($this->tagName));
}
}
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Page/Header/MetaViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function render()
}
$content = $this->arguments['content'];
if (!empty($content)) {
$pageRenderer = $this->getPageRenderer();
$pageRenderer = static::getPageRenderer();
if (method_exists($pageRenderer, 'addMetaTag')) {
$pageRenderer->addMetaTag($this->renderTag($this->tagName, null, ['content' => $content]));
} else {
Expand Down

0 comments on commit 2cc47e2

Please sign in to comment.