jenkins-bot has submitted this change and it was merged.

Change subject: Remove deprecated Language::getLanguageNames()
......................................................................


Remove deprecated Language::getLanguageNames()

Was deprecated since 1.20. Uses in Gerrit extensions have been replaced.

Change-Id: I2011d3e209915ddbbafdbdfff0279ea7cc5b9125
---
M RELEASE-NOTES-1.27
M languages/Language.php
2 files changed, 1 insertion(+), 14 deletions(-)

Approvals:
  MaxSem: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27
index b64bf40..df695bd 100644
--- a/RELEASE-NOTES-1.27
+++ b/RELEASE-NOTES-1.27
@@ -223,6 +223,7 @@
 * ApiQuery::setGeneratorContinue() was removed (deprecated since 1.24).
 * ApiMain::getModules() was removed (deprecated since 1.21).
 * ApiBase::getVersion() was removed (deprecated since 1.21).
+* Language::getLanguageNames() was removed (deprecated since 1.20).
 
 === Languages updated in 1.27 ===
 
diff --git a/languages/Language.php b/languages/Language.php
index 0bd2276..e325e69 100644
--- a/languages/Language.php
+++ b/languages/Language.php
@@ -803,20 +803,6 @@
        }
 
        /**
-        * Get native language names, indexed by code.
-        * Only those defined in MediaWiki, no other data like CLDR.
-        * If $customisedOnly is true, only returns codes with a messages file
-        *
-        * @param bool $customisedOnly
-        *
-        * @return array
-        * @deprecated since 1.20, use fetchLanguageNames()
-        */
-       public static function getLanguageNames( $customisedOnly = false ) {
-               return self::fetchLanguageNames( null, $customisedOnly ? 
'mwfile' : 'mw' );
-       }
-
-       /**
         * Get translated language names. This is done on best effort and
         * by default this is exactly the same as Language::getLanguageNames.
         * The CLDR extension provides translated names.

-- 
To view, visit https://gerrit.wikimedia.org/r/275566
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I2011d3e209915ddbbafdbdfff0279ea7cc5b9125
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to