r32811 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32810‎ | r32811 | r32812 >
Date:14:57, 5 April 2008
Author:btongminh
Status:old
Tags:
Comment:
(bug 13616) Replace underscores in search terms by spaces
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialSearch.php
@@ -30,7 +30,8 @@
3131 function wfSpecialSearch( $par = '' ) {
3232 global $wgRequest, $wgUser;
3333
34 - $search = str_replace( "\n", " ", $wgRequest->getText( 'search', $par ) );
 34+ $search = str_replace( array('_', "\n"), " ",
 35+ $wgRequest->getText( 'search', $par ) );
3536 $searchPage = new SpecialSearch( $wgRequest, $wgUser );
3637 if( $wgRequest->getVal( 'fulltext' ) ||
3738 !is_null( $wgRequest->getVal( 'offset' ) ) ||
Index: trunk/phase3/RELEASE-NOTES
@@ -151,6 +151,7 @@
152152 * (bug 13576) maintenance/rebuildrecentchanges.php fails
153153 * (bug 13441) Allow Special:Recentchanges to show bots only
154154 * (bug 13431) Show true message source in Special:Allmessages&ot=php / xml
 155+* (bug 13616) Replace underscores in search terms by spaces
155156
156157 === API changes in 1.13 ===
157158

Follow-up revisions

RevisionCommit summaryAuthorDate
r32970Revert r32811 -- regression in search....brion17:21, 8 April 2008

Status & tagging log