diff options
author | Christopher Arndt <chris@chrisarndt.de> | 2005-10-01 15:50:47 +0200 |
---|---|---|
committer | Christopher Arndt <chris@chrisarndt.de> | 2005-10-01 15:50:47 +0200 |
commit | 075f000f1c8f0899f80f94e63a11071fcc506c55 (patch) | |
tree | b0a19d379cb12e764ffcc941179427436932a9b2 /inc | |
parent | 23434a60f035450a922cb252fd4719976216138a (diff) | |
download | rpg-075f000f1c8f0899f80f94e63a11071fcc506c55.tar.gz rpg-075f000f1c8f0899f80f94e63a11071fcc506c55.tar.bz2 |
fix for subscription feature in tpl_actionlink #576
darcs-hash:20051001135047-51048-4ed7389d2d23bfecf020d6493e6d126869e8a2e8.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/template.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/template.php b/inc/template.php index ead6e4795..e14d0d0ad 100644 --- a/inc/template.php +++ b/inc/template.php @@ -460,9 +460,10 @@ function tpl_actionlink($type,$pre='',$suf=''){ tpl_link(wl($ID,'do=admin'),$pre.$lang['btn_admin'].$suf,'class="action admin"'); break; case 'subscribe': + case 'subscription': if($conf['useacl'] && $ACT == 'show' && $conf['subscribers'] == 1){ if($_SERVER['REMOTE_USER']){ - if($info['subscribed']) { + if($INFO['subscribed']) { tpl_link(wl($ID,'do=unsubscribe'),$pre.$lang['btn_unsubscribe'].$suf,'class="action unsubscribe"'); } else { tpl_link(wl($ID,'do=subscribe'),$pre.$lang['btn_subscribe'].$suf,'class="action subscribe"'); |