]> git.openstreetmap.org Git - chef.git/commitdiff
Add Thanks extension to wiki
authorTigerfell <tigerfell-688@tuta.io>
Thu, 24 Jan 2019 22:10:50 +0000 (23:10 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 26 Jan 2019 15:26:31 +0000 (15:26 +0000)
Closes #214

cookbooks/wiki/recipes/default.rb
cookbooks/wiki/templates/default/mw-ext-Echo.inc.php.erb [new file with mode: 0644]
cookbooks/wiki/templates/default/mw-ext-Thanks.inc.php.erb [new file with mode: 0644]

index e574a884f6544dec6c69164c4ba0d4e6acc58919..782fbdd3afb1ae7b85440ec0c02f3e19109600ef 100644 (file)
@@ -84,6 +84,18 @@ mediawiki_extension "OsmWikibase" do
   reference "master"
 end
 
+mediawiki_extension "Echo" do
+  site "wiki.openstreetmap.org"
+  template "mw-ext-Echo.inc.php.erb"
+  template_cookbook "wiki"
+end
+
+mediawiki_extension "Thanks" do
+  site "wiki.openstreetmap.org"
+  template "mw-ext-Thanks.inc.php.erb"
+  template_cookbook "wiki"
+end
+
 cookbook_file "/srv/wiki.openstreetmap.org/osm_logo_wiki.png" do
   owner node[:mediawiki][:user]
   group node[:mediawiki][:group]
diff --git a/cookbooks/wiki/templates/default/mw-ext-Echo.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Echo.inc.php.erb
new file mode 100644 (file)
index 0000000..26560fb
--- /dev/null
@@ -0,0 +1,7 @@
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+wfLoadExtension( 'Echo' );
+
+// configure the footer of e-mail notifications sent by the wiki
+// otherwise: empty string
+$wgEchoEmailFooterAddress = 'This notification was sent by the OpenStreetMap Wiki. You can turn off e-Mail notifications in your settings.';
diff --git a/cookbooks/wiki/templates/default/mw-ext-Thanks.inc.php.erb b/cookbooks/wiki/templates/default/mw-ext-Thanks.inc.php.erb
new file mode 100644 (file)
index 0000000..bba9b9b
--- /dev/null
@@ -0,0 +1,6 @@
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+wfLoadExtension( 'Thanks' );
+
+// Disable logging of thanks
+$wgThanksLogging = false;