r69682 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69681‎ | r69682 | r69683 >
Date:14:31, 21 July 2010
Author:btongminh
Status:ok
Tags:
Comment:
Follow-up r69203: remove str_replace( '_', ' ', $query ); was only needed for Special:Search/$par case, not applicable to API
Modified paths:
  • /trunk/phase3/includes/api/ApiQuerySearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQuerySearch.php
@@ -74,7 +74,6 @@
7575 } elseif ( $what == 'title' ) {
7676 $matches = $search->searchTitle( $query );
7777 } elseif ( $what == 'nearmatch' ) {
78 - $query = str_replace( '_', ' ', $query );
7978 $matches = SearchEngine::getNearMatchResultSet( $query );
8079 } else {
8180 // We default to title searches; this is a terrible legacy

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69203(bug 22339) Added srwhat=nearmatch to list=search to get a "go" result...btongminh11:08, 9 July 2010

Status & tagging log