Skip to content
Snippets Groups Projects
Commit 075f000f authored by Christopher Arndt's avatar Christopher Arndt
Browse files

fix for subscription feature in tpl_actionlink #576

darcs-hash:20051001135047-51048-4ed7389d2d23bfecf020d6493e6d126869e8a2e8.gz
parent 23434a60
No related branches found
No related tags found
No related merge requests found
......@@ -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"');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment