X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c29faeee61f4bed41701f6cc46b6fac5c3cc7b71..f185f204ede20ff19f632d958f7de2e0dd510c95:/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb diff --git a/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb b/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb index 8a5b93f3d..f5bc8cb87 100644 --- a/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb +++ b/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb @@ -20,7 +20,7 @@ exports.setup = function(parsoidConfig) { // The URL of your MediaWiki API endpoint. //parsoidConfig.setMwApi({ prefix: 'localhost', uri: 'http://localhost/w/api.php' }); - <% node[:mediawiki][:sites].each do |mediawiki_name| -%> + <% node[:mediawiki][:sites].keys.sort.each do |mediawiki_name| -%> parsoidConfig.setMwApi({ uri: 'http://<%= @mediawiki_name %>/w/api.php' }); <% end -%>