Merge "Replace deprecated Language::getFallbacksIncludingSiteLanguage"

This commit is contained in:
jenkins-bot 2020-12-17 10:50:08 +00:00 committed by Gerrit Code Review
commit 39d95be801

View file

@ -583,7 +583,8 @@ class TemplateDataBlob {
return $text->$langCode; return $text->$langCode;
} }
list( $userlangs, $sitelangs ) = Language::getFallbacksIncludingSiteLanguage( $langCode ); list( $userlangs, $sitelangs ) = MediaWikiServices::getInstance()->getLanguageFallback()
->getAllIncludingSiteLanguage( $langCode );
foreach ( $userlangs as $lang ) { foreach ( $userlangs as $lang ) {
if ( isset( $text->$lang ) ) { if ( isset( $text->$lang ) ) {