X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/496ab657b7db5b5869229557a02b5d3bdd067df9..2915ebac652fcc0521325cf1aae5a2f56f792549:/cookbooks/mediawiki/resources/site.rb diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index 976913cde..62324b5de 100644 --- a/cookbooks/mediawiki/resources/site.rb +++ b/cookbooks/mediawiki/resources/site.rb @@ -508,11 +508,18 @@ action :create do update_site false end - # Broken Extension - 3 April 2022 - Remove. See https://github.com/openstreetmap/chef/pull/491#issuecomment-1086759504 - mediawiki_extension "QuickInstantCommons" do - site new_resource.site - update_site false - action :delete + if new_resource.commons + mediawiki_extension "QuickInstantCommons" do + site new_resource.site + update_site false + reference "master" + end + else + mediawiki_extension "QuickInstantCommons" do + site new_resource.site + update_site false + action :delete + end end cookbook_file "#{site_directory}/cc-wiki.png" do @@ -654,7 +661,6 @@ action_class do def mediawiki_params { - :site => => new_resource.site, :sitename => new_resource.sitename, :metanamespace => new_resource.metanamespace, :logo => new_resource.logo,