X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchEngine.php;h=0eb87e4a13fb06f27d45c122557a23493b2f2bfa;hb=b0cfcd0fcbcbe02be3b91f8605951b48f3d3ddcd;hp=3a3baef18c9d8b47d0453761404e0ece6e734ce9;hpb=a25d105a308a9569bb97af56e70735b400d11e02;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchEngine.php b/includes/search/SearchEngine.php index 3a3baef18c..0eb87e4a13 100644 --- a/includes/search/SearchEngine.php +++ b/includes/search/SearchEngine.php @@ -120,6 +120,8 @@ class SearchEngine { * Transform search term in cases when parts of the query came as different * GET params (when supported), e.g. for prefix queries: * search=test&prefix=Main_Page/Archive -> test prefix:Main Page/Archive + * @param string $term + * @return string */ function transformSearchTerm( $term ) { return $term; @@ -152,6 +154,7 @@ class SearchEngine { /** * Really find the title match. + * @param string $searchterm * @return null|Title */ private static function getNearMatchInternal( $searchterm ) { @@ -318,7 +321,6 @@ class SearchEngine { $parsed = $query; if ( strpos( $query, ':' ) === false ) { // nothing to do - wfRunHooks( 'SearchEngineReplacePrefixesComplete', array( $this, $query, &$parsed ) ); return $parsed; } @@ -338,8 +340,6 @@ class SearchEngine { $parsed = $query; // prefix was the whole query } - wfRunHooks( 'SearchEngineReplacePrefixesComplete', array( $this, $query, &$parsed ) ); - return $parsed; } @@ -419,17 +419,6 @@ class SearchEngine { return $formatted; } - /** - * Return a 'cleaned up' search string - * - * @param string $text - * @return string - */ - function filter( $text ) { - $lc = $this->legalSearchChars(); - return trim( preg_replace( "/[^{$lc}]/", " ", $text ) ); - } - /** * Load up the appropriate search engine class for the currently * active database backend, and return a configured instance.