mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-11-23 23:43:54 +00:00
Merge "Replace deprecated Language::getFallbacksIncludingSiteLanguage"
This commit is contained in:
commit
39d95be801
|
@ -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