Remove deprecated Language::getLanguageNames()
authorSiebrand Mazeland <siebrand@kitano.nl>
Mon, 7 Mar 2016 17:25:49 +0000 (18:25 +0100)
committerKrinkle <krinklemail@gmail.com>
Tue, 8 Mar 2016 20:26:34 +0000 (20:26 +0000)
Was deprecated since 1.20. Uses in Gerrit extensions have been replaced.

Change-Id: I2011d3e209915ddbbafdbdfff0279ea7cc5b9125

RELEASE-NOTES-1.27
languages/Language.php

index b64bf40..df695bd 100644 (file)
@@ -223,6 +223,7 @@ HHVM 3.1.
 * 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 ===
 
index 0bd2276..e325e69 100644 (file)
@@ -802,20 +802,6 @@ class Language {
                return $this->getMessageFromDB( "tog-$tog" );
        }
 
-       /**
-        * 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.