diff options
author | James Atkinson <thefinn@users.sourceforge.net> | 2001-07-09 22:43:02 +0000 |
---|---|---|
committer | James Atkinson <thefinn@users.sourceforge.net> | 2001-07-09 22:43:02 +0000 |
commit | 284b14e97092dc8853d8a17cee76aaf8e5a31d61 (patch) | |
tree | 63de339048acb4b54e50ab623235235bc721f73e /phpBB | |
parent | fe189c90de14068d29e994ffee5caf2e13e74fa3 (diff) | |
download | forums-284b14e97092dc8853d8a17cee76aaf8e5a31d61.tar forums-284b14e97092dc8853d8a17cee76aaf8e5a31d61.tar.gz forums-284b14e97092dc8853d8a17cee76aaf8e5a31d61.tar.bz2 forums-284b14e97092dc8853d8a17cee76aaf8e5a31d61.tar.xz forums-284b14e97092dc8853d8a17cee76aaf8e5a31d61.zip |
is_first_post was missing from the edit button for some reason..
git-svn-id: file:///svn/phpbb/trunk@610 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/viewtopic.php | 7 |
1 files changed, 6 insertions, 1 deletions
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']) ? "<a href=\"profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$poster_id\"><img src=\"" . $images['msnm'] . "\" border=\"0\" alt=\"" . $lang['MSNM'] . "\"></a>" : ""; $yim_img = ($postrow[$i]['user_yim']) ? "<a href=\"http://edit.yahoo.com/config/send_webmesg?.target=" . $postrow[$i]['user_yim'] . "&.src=pg\"><img src=\"" . $images['yim'] . "\" border=\"0\" alt=\"" . $lang['YIM'] . "\"></a>" : ""; + $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 = "<a href=\"" . $edit_post_url . "\"><img src=\"" . $images['edit'] . "\" alt=\"" . $lang['Edit_delete_post'] . "\" border=\"0\"></a>"; $quote_img = "<a href=\"" . append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id") . "\"><img src=\"" . $images['quote'] . "\" alt=\"" . $lang['Reply_with_quote'] ."\" border=\"0\"></a>"; |