summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/template.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php
index efd921f7d..6d057463f 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -510,6 +510,7 @@ function tpl_button($type){
return true;
}
return false;
+ case 'subscribe':
case 'subscription':
if($conf['useacl'] && $auth && $ACT == 'show' && $conf['subscribers'] == 1){
if($_SERVER['REMOTE_USER']){
@@ -518,6 +519,14 @@ function tpl_button($type){
} else {
print html_btn('subscribe',$ID,'',array('do' => 'subscribe',));
}
+ if($type == 'subscribe') return true;
+ }
+ }
+ if($type == 'subscribe') return false;
+ // fall through for backward compatibility
+ case 'subscribens':
+ if($conf['useacl'] && $auth && $ACT == 'show' && $conf['subscribers'] == 1){
+ if($_SERVER['REMOTE_USER']){
if($INFO['subscribedns']){
print html_btn('unsubscribens',$ID,'',array('do' => 'unsubscribens',));
} else {