summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-08-06 23:20:00 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-08-06 23:20:00 +0200
commit1380fc452d56dd6f48ddbfa3a6b0e69edd043b04 (patch)
tree0654df1e2d7a86be45be1ced2624e73e1a4e565a /inc/template.php
parentb158d625b53833ef391800a991ad93d965d9425e (diff)
downloadrpg-1380fc452d56dd6f48ddbfa3a6b0e69edd043b04.tar.gz
rpg-1380fc452d56dd6f48ddbfa3a6b0e69edd043b04.tar.bz2
changes to the page subscription feature
darcs-hash:20050806212000-7ad00-c5ab54a33289f8be0ce99443f82f0b3cf1bdbf0d.gz
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/inc/template.php b/inc/template.php
index 9baf19348..34fdfb009 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -341,13 +341,13 @@ function tpl_button($type){
case 'backtomedia':
print html_backtomedia_button(array('ns' => $NS),'b');
break;
- case 'track':
+ case 'subscription':
if($conf['useacl'] && $ACT == 'show'){
if($_SERVER['REMOTE_USER']){
- if(tracking($ID,$_SERVER['REMOTE_USER'])){
- print html_btn('ignore',$ID,'',array('do' => 'ignore',));
+ if($INFO['subscribed']){
+ print html_btn('unsubscribe',$ID,'',array('do' => 'unsubscribe',));
} else {
- print html_btn('track',$ID,'',array('do' => 'track',));
+ print html_btn('subscribe',$ID,'',array('do' => 'subscribe',));
}
}
}