Skip to content

Commit

Permalink
[BUGFIX] Add typecasts for page types
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Jan 16, 2020
1 parent 63b87ad commit a7eab9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Link/ArchiveViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function render(): string
->setUseCacheHash(true);
if ($rssFormat) {
$uriBuilder
->setTargetPageType($this->getTypoScriptFrontendController()->tmpl->setup['blog_rss_archive.']['typeNum']);
->setTargetPageType((int)$this->getTypoScriptFrontendController()->tmpl->setup['blog_rss_archive.']['typeNum']);
}
$uri = $uriBuilder->uriFor('listPostsByDate', $arguments, 'Post', 'Blog', 'Archive');
if ($uri !== '') {
Expand Down
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/Link/AuthorViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ protected function getUriBuilder(int $pageUid, array $additionalParams, bool $rs
->setArguments($additionalParams);
if ($rssFormat) {
$uriBuilder
->setTargetPageType($this->getTypoScriptFrontendController()->tmpl->setup['blog_rss_author.']['typeNum']);
->setTargetPageType((int)$this->getTypoScriptFrontendController()->tmpl->setup['blog_rss_author.']['typeNum']);
}

return $uriBuilder;
Expand Down

0 comments on commit a7eab9a

Please sign in to comment.