summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorGuy Brand <gb@isis.u-strasbg.fr>2008-02-27 16:50:24 +0100
committerGuy Brand <gb@isis.u-strasbg.fr>2008-02-27 16:50:24 +0100
commit52b0dd6759c3a1c726ae81acf5ab430b1ee6f308 (patch)
tree45af9dde8f41aee2df3fd6afd60f074ac8c73874 /inc/template.php
parentf342ae92e0880da9d8a88123be054e597b2a7beb (diff)
downloadrpg-52b0dd6759c3a1c726ae81acf5ab430b1ee6f308.tar.gz
rpg-52b0dd6759c3a1c726ae81acf5ab430b1ee6f308.tar.bz2
Add namespace changes mail notifications
This patch lets DokuWiki send mail notifications when any page inside a namespace gets modified. Two actions are introduced: subscribens and unsubscribens and two new buttons also appear in the bundled template. darcs-hash:20080227155024-19e2d-8ce5bd66f4e870db31d6b438516599f294365ce1.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php
index b0cb56c5b..4f4ba9813 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -518,6 +518,11 @@ function tpl_button($type){
} else {
print html_btn('subscribe',$ID,'',array('do' => 'subscribe',));
}
+ if($INFO['subscribedns']){
+ print html_btn('unsubscribens',$ID,'',array('do' => 'unsubscribens',));
+ } else {
+ print html_btn('subscribens',$ID,'',array('do' => 'subscribens',));
+ }
return true;
}
}