]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/mediawiki/providers/extension.rb
imagery: reset revision to 0
[chef.git] / cookbooks / mediawiki / providers / extension.rb
index cb4cc5c84b3670edde1267887c6c4109fc721c0a..33f7ad221f06b9f8b35456d074a34c89f289f025 100644 (file)
@@ -68,7 +68,7 @@ action :create do
 
     file "#{mediawiki_directory}/LocalSettings.d/Ext-#{new_resource.name}.inc.php" do
       action :create
-      content "<?php require_once('#{extension_script}');\n"
+      content "<?php wfLoadExtension( '#{new_resource.name}' );\n"
       user node[:mediawiki][:user]
       group node[:mediawiki][:group]
       mode 0664