diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 816ba5e014..fd7c9e619c 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -354,8 +354,13 @@ for($i = 0; $i < $total_posts; $i++) $msn_img = ($postrow[$i]['user_msnm']) ? "\""" : ""; $yim_img = ($postrow[$i]['user_yim']) ? "\""" : ""; + $edit_post_url = "posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id"; + if($i == 0) + { + $edit_post_url .= "&is_first_post=1"; + } - $edit_post_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id"); + $edit_post_url = append_sid($edit_post_url); $edit_img = "\"""; $quote_img = "\""";