X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/c29faeee61f4bed41701f6cc46b6fac5c3cc7b71..821c29b09ce6a0bd444f89c4cf80c207f2c8df26:/cookbooks/mediawiki/templates/default/parsoid-settings.js.erb?ds=sidebyside 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