mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-27 17:20:01 +00:00
Replace deprecated Language::getFallbacksIncludingSiteLanguage
Change-Id: I24a95ce973169ab3f76abe39ca9780c3bf4ec5a4
This commit is contained in:
parent
ae0dd0e094
commit
49bc2e8735
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in a new issue