Replace deprecated Language::getFallbacksIncludingSiteLanguage

Change-Id: I24a95ce973169ab3f76abe39ca9780c3bf4ec5a4
This commit is contained in:
WMDE-Fisch 2020-12-16 12:07:34 +01:00
parent ae0dd0e094
commit 49bc2e8735

View file

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