[BUGFIX] Use extension key for ExtensionManagementUtility::siteRelPath 66/43566/2
authorNicole Cordes <typo3@cordes.co>
Fri, 25 Sep 2015 10:30:33 +0000 (12:30 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 25 Sep 2015 12:38:04 +0000 (14:38 +0200)
Due to the backport from https://review.typo3.org/41841/ a wrong
extension key for indexed_search is used to get the extension path.

Resolves: #70111
Releases: 6.2
Change-Id: I9abd587fda34059b7f5c8375a45a66b5e8ae066b
Reviewed-on: http://review.typo3.org/43566
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/indexed_search/Classes/Controller/SearchController.php

index d2c0df7..cfe9db0 100644 (file)
@@ -441,7 +441,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
                        ));
                        // check if the access is restricted
                        if (is_array($this->requiredFrontendUsergroups[$pathId]) && count($this->requiredFrontendUsergroups[$pathId])) {
-                               $resultData['access'] = '<img src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('IndexedSearch') . 'pi/res/locked.gif" width="12" height="15" vspace="5" title="' . sprintf(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('result.memberGroups', 'IndexedSearch'), implode(',', array_unique($this->requiredFrontendUsergroups[$pathId]))) . '" alt="" />';
+                               $resultData['access'] = '<img src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath('indexed_search') . 'pi/res/locked.gif" width="12" height="15" vspace="5" title="' . sprintf(\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('result.memberGroups', 'IndexedSearch'), implode(',', array_unique($this->requiredFrontendUsergroups[$pathId]))) . '" alt="" />';
                        }
                }
                // If there are subrows (eg. subpages in a PDF-file or if a duplicate page