X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fwidget%2Fsearch%2FSearchFormWidget.php;h=7eb92fdfd6a1d1a8571c6b7c9ca9a55e5bdd2282;hb=7c4b637cca308651cb98d40b2bd7dca187160e81;hp=735806b0dfc5e47a970fee994640f3bdbae65915;hpb=eb5fe55cd5826b933bd6daf1b30614e2bc847e0a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/widget/search/SearchFormWidget.php b/includes/widget/search/SearchFormWidget.php index 735806b0df..7eb92fdfd6 100644 --- a/includes/widget/search/SearchFormWidget.php +++ b/includes/widget/search/SearchFormWidget.php @@ -238,14 +238,14 @@ class SearchFormWidget { protected function powerSearchBox( $term, array $opts ) { $rows = []; $activeNamespaces = $this->specialSearch->getNamespaces(); + $langConverter = MediaWikiServices::getInstance()->getContentLanguage()->getConverter(); foreach ( $this->searchConfig->searchableNamespaces() as $namespace => $name ) { $subject = MWNamespace::getSubject( $namespace ); if ( !isset( $rows[$subject] ) ) { $rows[$subject] = ""; } - $name = MediaWikiServices::getInstance()->getContentLanguage()->getConverter()-> - convertNamespace( $namespace ); + $name = $langConverter->convertNamespace( $namespace ); if ( $name === '' ) { $name = $this->specialSearch->msg( 'blanknamespace' )->text(); }