Skip to content

Commit

Permalink
chore: improve compatibility with TYPO3 v13
Browse files Browse the repository at this point in the history
  • Loading branch information
runepiper committed Jan 14, 2025
1 parent b72745a commit e2e67d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/Service/SearchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public function search(string $query, string $sorting = 'crdate_desc', array $ty
],
// Filter by checking the rootPageId is in the rootline
'filter' => [
'rootPageId = ' . $GLOBALS['TSFE']->getSite()->getRootPageId(),
'languageId IN [-1,' . $GLOBALS['TSFE']->getLanguage()->getLanguageId() . ']',
'rootPageId = ' . $GLOBALS['TYPO3_REQUEST']->getAttribute('site')->getRootPageId(),
'languageId IN [-1,' . $GLOBALS['TYPO3_REQUEST']->getAttribute('language')->getLanguageId() . ']',
$typesFilter,
],
]);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Extension to use Meilisearch as search.",
"type": "typo3-cms-extension",
"require": {
"typo3/cms-core": "^10.4 || ^11.5 || ^12.4 || ^13.4",
"typo3/cms-core": "^11.5 || ^12.4 || ^13.4",
"meilisearch/meilisearch-php": "^1.6",
"spatie/pdf-to-text": "^1.52.1"
},
Expand Down

0 comments on commit e2e67d0

Please sign in to comment.