jenkins-bot has submitted this change and it was merged. Change subject: Replace deprecated Language::getLanguageName(s)() ......................................................................
Replace deprecated Language::getLanguageName(s)() Change-Id: I0f14396509c09b949c25397ed2e8459f7752ea5f --- M Polyglot.php 1 file changed, 2 insertions(+), 2 deletions(-) Approvals: Hashar: Looks good to me, approved jenkins-bot: Verified diff --git a/Polyglot.php b/Polyglot.php index 72546b7..a22557b 100644 --- a/Polyglot.php +++ b/Polyglot.php @@ -88,7 +88,7 @@ } if ( $wgPolyglotLanguages === null ) { - $wgPolyglotLanguages = array_keys( Language::getLanguageNames() ); + $wgPolyglotLanguages = array_keys( Language::fetchLanguageNames() ); } } @@ -330,7 +330,7 @@ $nt = Title::newFromText( $l ); $language_urls[] = array( 'href' => $nt->getFullURL(), - 'text' => $wgContLang->getLanguageName( $lang ), + 'text' => Language::fetchLanguageName( $lang, $wgContLang->getCode() ), 'class' => 'interwiki-' . $lang, ); } -- To view, visit https://gerrit.wikimedia.org/r/275549 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I0f14396509c09b949c25397ed2e8459f7752ea5f Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/Polyglot Gerrit-Branch: master Gerrit-Owner: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: Hashar <has...@free.fr> Gerrit-Reviewer: MaxSem <maxsem.w...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits