From f185f204ede20ff19f632d958f7de2e0dd510c95 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Sat, 2 Jan 2016 09:45:08 +0000 Subject: [PATCH] Mediawiki: fix parsoid template --- cookbooks/mediawiki/templates/default/parsoid-settings.js.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -%> -- 2.39.5