Use content language for search prefixes.
authorRobert Stojnić <rainman@users.mediawiki.org>
Thu, 17 Apr 2008 15:11:42 +0000 (15:11 +0000)
committerRobert Stojnić <rainman@users.mediawiki.org>
Thu, 17 Apr 2008 15:11:42 +0000 (15:11 +0000)
includes/SearchEngine.php
includes/SpecialSearch.php

index 00cb185..d802a7f 100644 (file)
@@ -190,7 +190,7 @@ class SearchEngine {
                        return $query; // nothing to do
 
                $parsed = $query;
-               $allkeyword = wfMsg('searchall').":";
+               $allkeyword = wfMsgForContent('searchall').":";
                if( strncmp($query, $allkeyword, strlen($allkeyword)) == 0 ){
                        $this->namespaces = null;
                        $parsed = substr($query,strlen($allkeyword));
index dd9c9c5..fa5f38c 100644 (file)
@@ -428,7 +428,7 @@ class SpecialSearch {
                if( $result->hasRelated() ){
                        $st = SpecialPage::getTitleFor( 'Search' );
                        $stParams = wfArrayToCGI( $this->powerSearchOptions(),
-                               array('search'    => wfMsg('searchrelated').':'.$t->getPrefixedText(),
+                               array('search'    => wfMsgForContent('searchrelated').':'.$t->getPrefixedText(),
                                      'fulltext'  => wfMsg('search') ));
                        
                        $related = ' -- <a href="'.$st->escapeLocalURL($stParams).'">'.