r33487 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33486‎ | r33487 | r33488 >
Date:15:13, 17 April 2008
Author:rainman
Status:old
Tags:
Comment:
Use content languages when parsing search prefixes.
Modified paths:
  • /trunk/extensions/MWSearch/MWSearch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MWSearch/MWSearch.php
@@ -139,7 +139,7 @@
140140 }
141141
142142 // check if this is query for related articles
143 - $relatedkey = wfMsg('searchrelated').':';
 143+ $relatedkey = wfMsgForContent('searchrelated').':';
144144 if($wgLuceneUseRelated && strncmp($query, $relatedkey, strlen($relatedkey)) == 0){
145145 $this->related = true;
146146 list($dummy,$ret) = explode(":",$query,2);
@@ -149,7 +149,7 @@
150150
151151 // "search everything"
152152 // might not be at the beginning for complex queries
153 - $allkeyword = wfMsg('searchall');
 153+ $allkeyword = wfMsgForContent('searchall');
154154
155155 for($i = 0 ; $i < $qlen ; $i++){
156156 $c = $query[$i];

Status & tagging log