From: Robert Stojnić Date: Thu, 17 Apr 2008 15:11:42 +0000 (+0000) Subject: Use content language for search prefixes. X-Git-Tag: 1.31.0-rc.0~48239 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=724def7befc8c5980763822c71f45110c7f48967;p=lhc%2Fweb%2Fwiklou.git Use content language for search prefixes. --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index 00cb185f36..d802a7fa6e 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -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)); diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index dd9c9c5264..fa5f38cf10 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -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 = ' -- '.