X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c29faeee61f4bed41701f6cc46b6fac5c3cc7b71..b88d6ea0fa7181ba138ef249a9a4aac0ce77c8a3:/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..896064bdc 100644 --- a/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb +++ b/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb @@ -20,8 +20,8 @@ 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| -%> - parsoidConfig.setMwApi({ uri: 'http://<%= @mediawiki_name %>/w/api.php' }); + <% node[:mediawiki][:sites].keys.sort.each do |site_url| -%> + parsoidConfig.setMwApi({ uri: 'http://<%= site_url %>/w/api.php' }); <% end -%> // To specify a proxy (or proxy headers) specific to this prefix (which