[BUGFIX] Extbase Plugin for Indexed Search not working 54/19254/2
authorMatthias Nitsch <nitsch@clickstorm.de>
Tue, 5 Feb 2013 09:09:36 +0000 (10:09 +0100)
committerBenjamin Mack <benni@typo3.org>
Mon, 25 Mar 2013 06:59:04 +0000 (07:59 +0100)
The plugin uses wrong classes in several places, which leads to fatal
errors because of missing functions.

Replace all occurences with the right classes.

Resolves: #45162
Releases: 6.1, 6.0
Change-Id: Ie7a0ba25adadf5482b22eaf38c0cf88aaf44cd1a
Reviewed-on: https://review.typo3.org/19254
Reviewed-by: Matthias Nitsch
Tested-by: Matthias Nitsch
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/indexed_search/Classes/Domain/Repository/IndexSearchRepository.php

index cfdcef5..c24b182 100644 (file)
@@ -777,7 +777,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
        protected function procSearchWordsByLexer($searchWords) {
                $newSearchWords = array();
                // Init lexer (used to post-processing of search words)
-               $lexerObjRef = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['lexer'] ? $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['lexer'] : 'EXT:indexed_search/class.lexer.php:&TYPO3\\CMS\\IndexedSearch\\Controller\\SearchFormController_lexer';
+               $lexerObjRef = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['lexer'] ? $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['indexed_search']['lexer'] : 'EXT:indexed_search/Classes/Lexer.php:&TYPO3\\CMS\\IndexedSearch\\Lexer';
                $this->lexerObj = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($lexerObjRef);
                // Traverse the search word array
                foreach ($searchWords as $wordDef) {
index a63f13d..9686820 100644 (file)
@@ -751,7 +751,7 @@ class IndexSearchRepository {
         * @return integer Integer intepretation of the md5 hash of input string.
         */
        protected function md5inthash($str) {
-               return \TYPO3\CMS\IndexedSearch\Indexer::md5inthash($str);
+               return \TYPO3\CMS\IndexedSearch\Utility\IndexedSearchUtility::md5inthash($str);
        }
 
        /**
@@ -763,7 +763,7 @@ class IndexSearchRepository {
         * @return boolean TRUE if given tables are enabled
         */
        protected function isTableUsed($table_list) {
-               return \TYPO3\CMS\IndexedSearch\Indexer::isTableUsed($table_list);
+               return \TYPO3\CMS\IndexedSearch\Utility\IndexedSearchUtility::isTableUsed($table_list);
        }
 
        /**