r33486 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33485‎ | r33486 | r33487 >
Date:15:11, 17 April 2008
Author:rainman
Status:old
Tags:
Comment:
Use content language for search prefixes.
Modified paths:
  • /trunk/phase3/includes/SearchEngine.php (modified) (history)
  • /trunk/phase3/includes/SpecialSearch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SearchEngine.php
@@ -190,7 +190,7 @@
191191 return $query; // nothing to do
192192
193193 $parsed = $query;
194 - $allkeyword = wfMsg('searchall').":";
 194+ $allkeyword = wfMsgForContent('searchall').":";
195195 if( strncmp($query, $allkeyword, strlen($allkeyword)) == 0 ){
196196 $this->namespaces = null;
197197 $parsed = substr($query,strlen($allkeyword));
Index: trunk/phase3/includes/SpecialSearch.php
@@ -428,7 +428,7 @@
429429 if( $result->hasRelated() ){
430430 $st = SpecialPage::getTitleFor( 'Search' );
431431 $stParams = wfArrayToCGI( $this->powerSearchOptions(),
432 - array('search' => wfMsg('searchrelated').':'.$t->getPrefixedText(),
 432+ array('search' => wfMsgForContent('searchrelated').':'.$t->getPrefixedText(),
433433 'fulltext' => wfMsg('search') ));
434434
435435 $related = ' -- <a href="'.$st->escapeLocalURL($stParams).'">'.

Status & tagging log