aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-06-24 08:09:00 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-06-24 08:09:00 +0000
commit48eeecb25893839ef9c9290d616083a6f1351b19 (patch)
tree1ea477f621428701da5292e8a5c857207f17a9e0 /phpBB/posting.php
parent2f4f5c5ede10a347e6d6e2c49571b7775af5af5c (diff)
downloadforums-48eeecb25893839ef9c9290d616083a6f1351b19.tar
forums-48eeecb25893839ef9c9290d616083a6f1351b19.tar.gz
forums-48eeecb25893839ef9c9290d616083a6f1351b19.tar.bz2
forums-48eeecb25893839ef9c9290d616083a6f1351b19.tar.xz
forums-48eeecb25893839ef9c9290d616083a6f1351b19.zip
- fixed topic icon display (correct radio box checked, only visible in first post)
git-svn-id: file:///svn/phpbb/trunk@4919 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php21
1 files changed, 9 insertions, 12 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index c545718711..7067342534 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -135,7 +135,6 @@ if ($sql)
$forum_id = (int) $forum_id;
$topic_id = (int) $topic_id;
$post_id = (int) $post_id;
- $icon_id = 0;
$post_edit_locked = (isset($post_edit_locked)) ? (int) $post_edit_locked : 0;
@@ -857,26 +856,24 @@ if (($mode == 'reply' || $mode == 'quote') && !$preview && !$refresh)
// Forum moderators?
get_moderators($moderators, $forum_id);
-
// Generate smilie listing
generate_smilies('inline', $forum_id);
-
-// Generate Topic icons
-$s_topic_icons = false;
-if ($enable_icons)
-{
- $s_topic_icons = posting_gen_topic_icons($mode, $icon_id);
-}
-
// Generate inline attachment select box
posting_gen_inline_attachments($message_parser);
-// Topic type selection ... only for first post in topic.
-$topic_type_toggle = false;
+
+// Do show topic icons and topic type selection only in first post.
+$topic_type_toggle = $s_topic_icons = false;
+
if ($mode == 'post' || ($mode == 'edit' && $post_id == $topic_first_post_id))
{
$topic_type_toggle = posting_gen_topic_types($forum_id, $topic_type);
+
+ if ($enable_icons)
+ {
+ $s_topic_icons = posting_gen_topic_icons($mode, $icon_id);
+ }
}