]> git.openstreetmap.org Git - chef.git/commitdiff
Remove redundant guard for old-style mediawiki extension loading
authorTom Hughes <tom@compton.nu>
Sun, 16 Sep 2018 11:21:05 +0000 (12:21 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 16 Sep 2018 11:21:05 +0000 (12:21 +0100)
cookbooks/mediawiki/resources/extension.rb

index 152e843d381ca1ac513ccd084f0f3fb3dabddfc9..1803c04f0c1913d6b78cceec2304a4ff283fd5d8 100644 (file)
@@ -75,14 +75,11 @@ action :create do
       variables new_resource.variables
     end
   else
       variables new_resource.variables
     end
   else
-    extension_script = "#{extension_directory}/#{new_resource.extension}.php"
-
     file "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do
       content "<?php wfLoadExtension( '#{new_resource.extension}' );\n"
       user node[:mediawiki][:user]
       group node[:mediawiki][:group]
       mode 0o664
     file "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.extension}.inc.php" do
       content "<?php wfLoadExtension( '#{new_resource.extension}' );\n"
       user node[:mediawiki][:user]
       group node[:mediawiki][:group]
       mode 0o664
-      only_if { ::File.exist?(extension_script) }
     end
   end
 
     end
   end