aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-05 00:30:02 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-07-05 01:03:19 +0200
commitf1056a9b2fd6e4ff7bc107372e9210bae9e077f0 (patch)
tree59b77442e1cfb1cd74ebb176fb84e21ea0f9e467 /phpBB/viewtopic.php
parentfc3a19567f1852389dfa78472cca4b1d01387bfa (diff)
downloadforums-f1056a9b2fd6e4ff7bc107372e9210bae9e077f0.tar
forums-f1056a9b2fd6e4ff7bc107372e9210bae9e077f0.tar.gz
forums-f1056a9b2fd6e4ff7bc107372e9210bae9e077f0.tar.bz2
forums-f1056a9b2fd6e4ff7bc107372e9210bae9e077f0.tar.xz
forums-f1056a9b2fd6e4ff7bc107372e9210bae9e077f0.zip
[ticket/10811] Make toogle_subscribe more generic so it can toogle all links
PHPBB3-10811
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 6a15d4e15b..a5561e4f4a 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -449,8 +449,9 @@ $viewtopic_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=$forum_id&a
// Are we watching this topic?
$s_watching_topic = array(
'link' => '',
+ 'link_toggle' => '',
'title' => '',
- 'toggle' => '',
+ 'title_toggle' => '',
'is_watching' => false,
);
@@ -651,8 +652,9 @@ $template->assign_vars(array(
'U_EMAIL_TOPIC' => ($auth->acl_get('f_email', $forum_id) && $config['email_enable']) ? append_sid("{$phpbb_root_path}memberlist.$phpEx", "mode=email&amp;t=$topic_id") : '',
'U_WATCH_TOPIC' => $s_watching_topic['link'],
+ 'U_WATCH_TOPIC_TOGGLE' => $s_watching_topic['link_toggle'],
'S_WATCH_TOPIC_TITLE' => $s_watching_topic['title'],
- 'S_WATCH_TOPIC_TOGGLE' => $s_watching_topic['toggle'],
+ 'S_WATCH_TOPIC_TOGGLE' => $s_watching_topic['title_toggle'],
'S_WATCHING_TOPIC' => $s_watching_topic['is_watching'],
'U_BOOKMARK_TOPIC' => ($user->data['is_registered'] && $config['allow_bookmarks']) ? $viewtopic_url . '&amp;bookmark=1&amp;hash=' . generate_link_hash("topic_$topic_id") : '',