Skip to content

Commit

Permalink
Merge pull request #393 from iresults/master
Browse files Browse the repository at this point in the history
[BUGFIX] Fix TYPO3 v9 support
  • Loading branch information
Richard Haeser committed Nov 17, 2020
2 parents b94bb86 + bc9eaff commit eb855e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Frontend/AdditionalPreviewData.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function getWebsiteTitle(): string
$request = $GLOBALS['TYPO3_REQUEST'];
if (class_exists(SiteLanguage::class)) {
$language = $request->getAttribute('language');
if ($language instanceof SiteLanguage && trim($language->getWebsiteTitle())) {
if ($language instanceof SiteLanguage && method_exists($language, 'getWebsiteTitle') && trim($language->getWebsiteTitle())) {
return trim($language->getWebsiteTitle());
}
}
Expand Down

0 comments on commit eb855e1

Please sign in to comment.