summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2021-07-19 15:20:22 -0400
committerBrian Evans <grknight@gentoo.org>2021-07-19 15:20:22 -0400
commit9f092345e6bbecfde8c19e6d1490a6031a35f61f (patch)
tree2abb2398cd0df686e8608e15097ddc58b8995615 /MLEB/cldr/includes/CldrNames.php
parentOAuth: Update for fixes and security (diff)
downloadextensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.tar.gz
extensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.tar.bz2
extensions-9f092345e6bbecfde8c19e6d1490a6031a35f61f.zip
Update to MLEB 2021.06
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/cldr/includes/CldrNames.php')
-rw-r--r--MLEB/cldr/includes/CldrNames.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/MLEB/cldr/includes/CldrNames.php b/MLEB/cldr/includes/CldrNames.php
index 74d20322..c9094bef 100644
--- a/MLEB/cldr/includes/CldrNames.php
+++ b/MLEB/cldr/includes/CldrNames.php
@@ -1,5 +1,7 @@
<?php
+use MediaWiki\MediaWikiServices;
+
/**
* A base class for querying translated names from CLDR data.
*
@@ -16,7 +18,8 @@ class CldrNames {
* @return string
*/
public static function getFileName( $code ) {
- return Language::getFileName( 'CldrNames', $code, '.php' );
+ return MediaWikiServices::getInstance()->getLanguageNameUtils()
+ ->getFileName( 'CldrNames', $code, '.php' );
}
/**
@@ -25,6 +28,7 @@ class CldrNames {
* @return string
*/
public static function getOverrideFileName( $code ) {
- return Language::getFileName( 'LocalNames', $code, '.php' );
+ return MediaWikiServices::getInstance()->getLanguageNameUtils()
+ ->getFileName( 'LocalNames', $code, '.php' );
}
}