Skip to content
Snippets Groups Projects
Commit 91f5bcf0 authored by Georgi Mateev's avatar Georgi Mateev
Browse files

[BUGFIX] Simplify FQN

parent 0cd675d3
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment