Index: trunk/extensions/MWSearch/MWSearchUpdater.php |
— | — | @@ -20,6 +20,8 @@ |
21 | 21 | * @static |
22 | 22 | */ |
23 | 23 | function updatePage( $dbname, $title, $text ) { |
| 24 | + global $wgContLang; |
| 25 | + $text = $wgContLang->stripForSearch( $text ); |
24 | 26 | return MWSearchUpdater::sendRPC( 'searchupdater.updatePage', |
25 | 27 | array( $dbname, $title, $text ) ); |
26 | 28 | } |
— | — | @@ -193,4 +195,3 @@ |
194 | 196 | } |
195 | 197 | |
196 | 198 | |
197 | | - |
Index: trunk/extensions/MWSearch/MWSearch_body.php |
— | — | @@ -9,6 +9,8 @@ |
10 | 10 | * @access public |
11 | 11 | */ |
12 | 12 | function searchText( $term ) { |
| 13 | + global $wgContLang; |
| 14 | + $term = $wgContLang->stripForSearch( $term ); |
13 | 15 | return LuceneSearchSet::newFromQuery( isset($this->related)? 'related' : 'search', |
14 | 16 | $term, $this->namespaces, $this->limit, $this->offset, $this->searchingEverything() ); |
15 | 17 | } |
— | — | @@ -747,4 +749,4 @@ |
748 | 750 | return new LuceneResult( $group, $this->mMethod ); |
749 | 751 | } |
750 | 752 | |
751 | | -} |
| 753 | +} |
\ No newline at end of file |