aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-08-13 16:58:48 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-08-13 16:58:48 +0000
commit66836ea525006f9af82812ae25f07b64595d83e0 (patch)
tree32779c0662516593ac10c30331de576796fb8e49 /phpBB/viewtopic.php
parentc0551af8517463858948c52a8c602a25b58ab9ce (diff)
downloadforums-66836ea525006f9af82812ae25f07b64595d83e0.tar
forums-66836ea525006f9af82812ae25f07b64595d83e0.tar.gz
forums-66836ea525006f9af82812ae25f07b64595d83e0.tar.bz2
forums-66836ea525006f9af82812ae25f07b64595d83e0.tar.xz
forums-66836ea525006f9af82812ae25f07b64595d83e0.zip
re-display download notice
git-svn-id: file:///svn/phpbb/trunk@4401 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index a81364e23d..441808f020 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -665,7 +665,7 @@ if (!empty($poll_start))
// Container for user details, only process once
$user_cache = $id_cache = $attachments = $attach_list = $rowset = $update_count = array();
-$has_attachments = FALSE;
+$has_attachments = $display_notice = FALSE;
$force_encoding = '';
$bbcode_bitfield = $i = 0;
@@ -688,7 +688,6 @@ if (!$row = $db->sql_fetchrow($result))
// and the global bbcode_bitfield are built
do
{
- $display_notice = FALSE;
$poster_id = $row['poster_id'];
$poster = ($poster_id == ANONYMOUS) ? ((!empty($row['post_username'])) ? $row['post_username'] : $user->lang['GUEST']) : $row['username'];
@@ -734,8 +733,7 @@ do
'bbcode_bitfield' => $row['bbcode_bitfield'],
'enable_html' => $row['enable_html'],
'enable_smilies' => $row['enable_smilies'],
- 'enable_sig' => $row['enable_sig'],
- 'display_notice' => $display_notice
+ 'enable_sig' => $row['enable_sig']
);
@@ -1136,7 +1134,7 @@ foreach ($rowset as $i => $row)
'S_HAS_ATTACHMENTS' => (!empty($attachments[$row['post_id']])) ? TRUE : FALSE,
'S_POST_UNAPPROVED' => ($row['post_approved']) ? FALSE : TRUE,
'S_POST_REPORTED' => ($row['post_reported'] && $auth->acl_get('m_', $forum_id)) ? TRUE : FALSE,
- 'S_DISPLAY_NOTICE' => $row['display_notice'])
+ 'S_DISPLAY_NOTICE' => $display_notice)
);
// Process Attachments for this post