Make output of LanguageNameIndexer more consistent

Change-Id: I13f06b9b1c65068206f1728f8a427c4ca46f28ec
This commit is contained in:
Niklas Laxström
2017-10-31 16:23:52 +01:00
parent 1d8f43310d
commit 56d3f2af43
2 changed files with 407 additions and 406 deletions

View File

@@ -31,6 +31,11 @@ class LanguageNameIndexer extends Maintenance {
}
public function execute() {
global $wgExtraLanguageNames;
// Avoid local configuration leaking to this script
$wgExtraLanguageNames = [];
$languages = Language::fetchLanguageNames( null, 'all' );
$buckets = [];