Index: trunk/extensions/MWSearch/MWSearch.php |
— | — | @@ -139,7 +139,7 @@ |
140 | 140 | } |
141 | 141 | |
142 | 142 | // check if this is query for related articles |
143 | | - $relatedkey = wfMsg('searchrelated').':'; |
| 143 | + $relatedkey = wfMsgForContent('searchrelated').':'; |
144 | 144 | if($wgLuceneUseRelated && strncmp($query, $relatedkey, strlen($relatedkey)) == 0){ |
145 | 145 | $this->related = true; |
146 | 146 | list($dummy,$ret) = explode(":",$query,2); |
— | — | @@ -149,7 +149,7 @@ |
150 | 150 | |
151 | 151 | // "search everything" |
152 | 152 | // might not be at the beginning for complex queries |
153 | | - $allkeyword = wfMsg('searchall'); |
| 153 | + $allkeyword = wfMsgForContent('searchall'); |
154 | 154 | |
155 | 155 | for($i = 0 ; $i < $qlen ; $i++){ |
156 | 156 | $c = $query[$i]; |