From 1380fc452d56dd6f48ddbfa3a6b0e69edd043b04 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 6 Aug 2005 23:20:00 +0200 Subject: changes to the page subscription feature darcs-hash:20050806212000-7ad00-c5ab54a33289f8be0ce99443f82f0b3cf1bdbf0d.gz --- inc/template.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc/template.php') 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',)); } } } -- cgit v1.2.3