mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
Fixed for reply bug
git-svn-id: file:///svn/phpbb/trunk@598 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -646,10 +646,11 @@ else if($mode == "post" || $mode == "reply" || $mode == "edit")
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$privmsg_sent_id = $db->sql_nextid($pm_sent_status);
|
|
||||||
|
|
||||||
if($mode != "edit")
|
if($mode != "edit")
|
||||||
{
|
{
|
||||||
|
$privmsg_sent_id = $db->sql_nextid();
|
||||||
|
|
||||||
$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_text)
|
$sql = "INSERT INTO " . PRIVMSGS_TEXT_TABLE . " (privmsgs_text_id, privmsgs_text)
|
||||||
VALUES ($privmsg_sent_id, '$message')";
|
VALUES ($privmsg_sent_id, '$message')";
|
||||||
}
|
}
|
||||||
@@ -811,6 +812,12 @@ else if($mode == "post" || $mode == "reply" || $mode == "edit")
|
|||||||
else if($mode == 'reply')
|
else if($mode == 'reply')
|
||||||
{
|
{
|
||||||
$post_a = $lang['Send_a_reply'];
|
$post_a = $lang['Send_a_reply'];
|
||||||
|
//
|
||||||
|
// Switch mode to post ... it's a bit of a cheat really but once the basic
|
||||||
|
// info for the reply is determined it really becomes a new post ... so why
|
||||||
|
// do it any other way?!
|
||||||
|
//
|
||||||
|
$mode = "post";
|
||||||
}
|
}
|
||||||
else if($mode == 'edit')
|
else if($mode == 'edit')
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user