Avoid sorting the language array twice
authorFomafix <fomafix@googlemail.com>
Thu, 22 Feb 2018 21:09:04 +0000 (22:09 +0100)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 23 May 2018 06:02:34 +0000 (23:02 -0700)
commit384dc90874f5ae495ab0538b9d45534e0a5ff14f
tree379e113e5026f2b783e736b3eeddf86a49b415d0
parente03b96c9a474831fb1b1d1fc1e6cd2de496dc251
Avoid sorting the language array twice

Language::fetchLanguageNames returns already a sorted array. An
additional ksort is only needed when inserting a new value.

Change-Id: If8c7b16fa6e7dfe1545f72ac9c742a2f43eaee57
includes/Xml.php
includes/installer/WebInstallerLanguage.php
includes/preferences/DefaultPreferencesFactory.php
includes/specials/SpecialPageLanguage.php
languages/Language.php