diff --git a/Classes/Controller/NewsByAuthorController.php b/Classes/Controller/NewsByAuthorController.php index 7c467af7c20373ec5bdf69892a9600ac1ae4a1b1..579c3e7bae0b5bf9ebfc1167a205b0bb2ba4da6f 100644 --- a/Classes/Controller/NewsByAuthorController.php +++ b/Classes/Controller/NewsByAuthorController.php @@ -32,6 +32,7 @@ use SGalinski\SgNews\Domain\Model\News; use SGalinski\SgNews\Domain\Repository\AuthorRepository; use SGalinski\SgNews\Domain\Repository\CategoryRepository; use SGalinski\SgNews\Domain\Repository\NewsRepository; +use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; /** @@ -68,7 +69,8 @@ class NewsByAuthorController extends AbstractController { $GLOBALS['TSFE']->page['titlebyextension'] = $author->getName(); $GLOBALS['TSFE']->page['description'] = \strip_tags(\substr($author->getDescription(), 0, 200)); - if (version_compare(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('sg_seo'), + if (version_compare( + ExtensionManagementUtility::getExtensionVersion('sg_seo'), '5.0.0', '<')) { $GLOBALS['TSFE']->page['extensionArgumentsForCanonicalAndHrefLang'] = '&tx_sgnews_newsbyauthor[authorId]=' . $author->getUid();