aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-06-09 11:11:20 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-06-09 11:11:20 +0000
commit455536773fd34f72e371386b5b0d9a517e0fc1e7 (patch)
treeb92b8cb07045e0aac93749f4e419d9d3a1f1654d /phpBB/viewforum.php
parentcbf7b00cb801bc7cbed5735452fc680c85cd9669 (diff)
downloadforums-455536773fd34f72e371386b5b0d9a517e0fc1e7.tar
forums-455536773fd34f72e371386b5b0d9a517e0fc1e7.tar.gz
forums-455536773fd34f72e371386b5b0d9a517e0fc1e7.tar.bz2
forums-455536773fd34f72e371386b5b0d9a517e0fc1e7.tar.xz
forums-455536773fd34f72e371386b5b0d9a517e0fc1e7.zip
ok, mess around with the templates + fixing some bugs + adjusting headers for those files already modified to circumvent conflicts for those having their editor set to remove trailing spaces (not recommended!)
git-svn-id: file:///svn/phpbb/trunk@7736 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 7bad55b34f..00a302cef4 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -190,6 +190,8 @@ if ($forum_data['prune_next'] < time() && $forum_data['enable_prune'])
// Forum rules and subscription info
$s_watching_forum = $s_watching_forum_img = array();
$s_watching_forum['link'] = $s_watching_forum['title'] = '';
+$s_watching_forum['is_watching'] = false;
+
if (($config['email_enable'] || $config['jab_enable']) && $config['allow_forum_notify'] && $auth->acl_get('f_subscribe', $forum_id))
{
$notify_status = (isset($forum_data['notify_status'])) ? $forum_data['notify_status'] : NULL;
@@ -281,6 +283,7 @@ $template->assign_vars(array(
'S_TOPIC_ICONS' => ($s_display_active && sizeof($active_forum_ary)) ? max($active_forum_ary['enable_icons']) : (($forum_data['enable_icons']) ? true : false),
'S_WATCH_FORUM_LINK' => $s_watching_forum['link'],
'S_WATCH_FORUM_TITLE' => $s_watching_forum['title'],
+ 'S_WATCHING_FORUM' => $s_watching_forum['is_watching'],
'S_FORUM_ACTION' => append_sid("{$phpbb_root_path}viewforum.$phpEx", "f=$forum_id&amp;start=$start"),
'S_DISPLAY_SEARCHBOX' => ($auth->acl_get('u_search') && $auth->acl_get('f_search', $forum_id) && $config['load_search']) ? true : false,
'S_SEARCHBOX_ACTION' => append_sid("{$phpbb_root_path}search.$phpEx", 'fid[]=' . $forum_id),