mediawiki: AntiSpoof fix
authorGrant Slater <git@firefishy.com>
Sat, 2 Jan 2016 08:06:20 +0000 (08:06 +0000)
committerGrant Slater <git@firefishy.com>
Sat, 2 Jan 2016 08:06:20 +0000 (08:06 +0000)
cookbooks/mediawiki/providers/site.rb
cookbooks/mediawiki/templates/default/mw-ext-AntiSpoof.inc.php.erb [new file with mode: 0644]

index ee882a253b12d05758f3554a896ebad1933723d0..6e3b5202256f2c0ddf648e5915fbf728c37a695e 100644 (file)
@@ -339,6 +339,7 @@ action :create do
 
   mediawiki_extension "AntiSpoof" do
     site new_resource.name
+    template "mw-ext-AntiSpoof.inc.php.erb"
     update_site false
   end
 
diff --git a/cookbooks/mediawiki/templates/default/mw-ext-AntiSpoof.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-AntiSpoof.inc.php.erb
new file mode 100644 (file)
index 0000000..c2e1477
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+require_once($IP .'/extensions/AntiSpoof/AntiSpoof.php');