[BUGFIX] Extbase Plugin for Indexed Search not working 20/18020/6
authorMatthias Nitsch <nitsch@clickstorm.de>
Tue, 5 Feb 2013 09:09:36 +0000 (10:09 +0100)
committerBenjamin Mack <benni@typo3.org>
Sat, 2 Mar 2013 10:29:58 +0000 (11:29 +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: I446be223e48dc7fc6de78a6d17eb0b1923108409
Reviewed-on: https://review.typo3.org/18020
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Matthias Nitsch
Tested-by: Matthias Nitsch
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Marc Hirdes
Tested-by: Marc Hirdes
Tested-by: André Haehnel
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);
        }
 
        /**