Render namespace lists in the user's language
[lhc/web/wiklou.git] / includes / widget / search / SearchFormWidget.php
index 7eb92fd..0c80951 100644 (file)
@@ -238,7 +238,7 @@ class SearchFormWidget {
        protected function powerSearchBox( $term, array $opts ) {
                $rows = [];
                $activeNamespaces = $this->specialSearch->getNamespaces();
-               $langConverter = MediaWikiServices::getInstance()->getContentLanguage()->getConverter();
+               $langConverter = $this->specialSearch->getLanguage();
                foreach ( $this->searchConfig->searchableNamespaces() as $namespace => $name ) {
                        $subject = MWNamespace::getSubject( $namespace );
                        if ( !isset( $rows[$subject] ) ) {