X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f185f204ede20ff19f632d958f7de2e0dd510c95..51c1fa6a8661fd2377c187575bd10891de423168:/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 f5bc8cb87..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].keys.sort.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