r58376 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r58375‎ | r58376 | r58377 >
Date:20:54, 30 October 2009
Author:maxsem
Status:ok
Tags:
Comment:
Match lowercase titles in SearchSqlite
Modified paths:
  • /trunk/phase3/includes/search/SearchSqlite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/search/SearchSqlite.php
@@ -179,13 +179,13 @@
180180 }
181181
182182 protected function searchInternal( $term, $fulltext ) {
183 - global $wgSearchMySQLTotalHits;
 183+ global $wgSearchMySQLTotalHits, $wgContLang;
184184
185185 if ( !$this->fulltextSearchSupported() ) {
186186 return null;
187187 }
188188
189 - $filteredTerm = $this->filter( $term );
 189+ $filteredTerm = $this->filter( $wgContLang->lc( $term ) );
190190 $resultSet = $this->db->query( $this->getQuery( $filteredTerm, $fulltext ) );
191191
192192 $total = null;

Status & tagging log