aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.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/includes/functions_display.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/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 7c1d007d55..bbfd6fd6b6 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -1218,8 +1218,9 @@ function watch_topic_forum($mode, &$s_watching, $user_id, $forum_id, $topic_id,
if ($can_watch)
{
$s_watching['link'] = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;" . (($is_watching) ? 'unwatch' : 'watch') . "=$mode&amp;start=$start&amp;hash=" . generate_link_hash("{$mode}_$match_id"));
+ $s_watching['link_toggle'] = append_sid("{$phpbb_root_path}view$mode.$phpEx", "$u_url=$match_id&amp;" . ((!$is_watching) ? 'unwatch' : 'watch') . "=$mode&amp;start=$start&amp;hash=" . generate_link_hash("{$mode}_$match_id"));
$s_watching['title'] = $user->lang[(($is_watching) ? 'STOP' : 'START') . '_WATCHING_' . strtoupper($mode)];
- $s_watching['toggle'] = $user->lang[((!$is_watching) ? 'STOP' : 'START') . '_WATCHING_' . strtoupper($mode)];
+ $s_watching['title_toggle'] = $user->lang[((!$is_watching) ? 'STOP' : 'START') . '_WATCHING_' . strtoupper($mode)];
$s_watching['is_watching'] = $is_watching;
}