From: Bryan Tong Minh Date: Wed, 21 Jul 2010 14:31:24 +0000 (+0000) Subject: Follow-up r69203: remove str_replace( '_', ' ', $query ); was only needed for Special... X-Git-Tag: 1.31.0-rc.0~36030 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=48147f8692b95d70f1acb0b4da4750a756737cc7;p=lhc%2Fweb%2Fwiklou.git Follow-up r69203: remove str_replace( '_', ' ', $query ); was only needed for Special:Search/$par case, not applicable to API --- diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index b1608fde3a..86ba895893 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -74,7 +74,6 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { } elseif ( $what == 'title' ) { $matches = $search->searchTitle( $query ); } elseif ( $what == 'nearmatch' ) { - $query = str_replace( '_', ' ', $query ); $matches = SearchEngine::getNearMatchResultSet( $query ); } else { // We default to title searches; this is a terrible legacy