X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f3a8f9b9c6f82205ec5509f311b0a1edeac3d40c..abe750320d58b744400f97161741e4ab26711034:/cookbooks/mediawiki/resources/site.rb?ds=sidebyside diff --git a/cookbooks/mediawiki/resources/site.rb b/cookbooks/mediawiki/resources/site.rb index 0508bcbad..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