X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/db1258aa91142e37e5dcded368a25ec2c937f473..9bca5f05185dde08efcf2d5f1a2bf66c8cdc9f00:/cookbooks/wordpress/definitions/wordpress_theme.rb?ds=sidebyside diff --git a/cookbooks/wordpress/definitions/wordpress_theme.rb b/cookbooks/wordpress/definitions/wordpress_theme.rb index 91ca9de3d..0720a8f1f 100644 --- a/cookbooks/wordpress/definitions/wordpress_theme.rb +++ b/cookbooks/wordpress/definitions/wordpress_theme.rb @@ -36,7 +36,9 @@ define :wordpress_theme, :action => [:enable] do files_mode 0644 end else - unless repository = params[:repository] + repository = params[:repository] + + unless repository version = params[:version] || node[:wordpress][:plugins][name][:version] repository = "http://themes.svn.wordpress.org/#{name}/#{version}" end