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 @@
75
75
} elseif ( $what == 'title' ) {
76
76
$matches = $search->searchTitle( $query );
77
77
} elseif ( $what == 'nearmatch' ) {
78
- $query = str_replace( '_', ' ', $query );
79
78
$matches = SearchEngine::getNearMatchResultSet( $query );
80
79
} else {
81
80
// We default to title searches; this is a terrible legacy
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r69203
(
bug 22339
) Added srwhat=nearmatch to list=search to get a "go" result...
btongminh
11:08, 9 July 2010
Status & tagging log
15:00, 21 July 2010
Catrope
(
talk
|
contribs
)
changed the
status
of r69682
[
removed:
new
added:
ok]