|
From: Paul S. O. <ps...@us...> - 2001-12-31 21:57:18
|
Update of /cvsroot/phpbb/phpBB2
In directory usw-pr-cvs1:/tmp/cvs-serv22115
Modified Files:
modcp.php
Log Message:
Fixed bug #488816
Index: modcp.php
===================================================================
RCS file: /cvsroot/phpbb/phpBB2/modcp.php,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -r1.52 -r1.53
*** modcp.php 2001/12/21 22:39:23 1.52
--- modcp.php 2001/12/31 21:57:15 1.53
***************
*** 739,744 ****
$topic_time = time();
! $sql = "INSERT INTO " . TOPICS_TABLE . "
! (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type)
VALUES ('" . str_replace("\'", "''", $post_subject) . "', $first_poster, " . $topic_time . ", $new_forum_id, " . TOPIC_UNLOCKED . ", " . POST_NORMAL . ")";
if(!$result = $db->sql_query($sql, BEGIN_TRANSACTION))
--- 739,743 ----
$topic_time = time();
! $sql = "INSERT INTO " . TOPICS_TABLE . " (topic_title, topic_poster, topic_time, forum_id, topic_status, topic_type)
VALUES ('" . str_replace("\'", "''", $post_subject) . "', $first_poster, " . $topic_time . ", $new_forum_id, " . TOPIC_UNLOCKED . ", " . POST_NORMAL . ")";
if(!$result = $db->sql_query($sql, BEGIN_TRANSACTION))
***************
*** 762,766 ****
$sql = "UPDATE " . POSTS_TABLE . "
! SET topic_id = $new_topic_id
WHERE post_id IN ($post_id_sql)";
}
--- 761,765 ----
$sql = "UPDATE " . POSTS_TABLE . "
! SET topic_id = $new_topic_id, forum_id = $new_forum_id
WHERE post_id IN ($post_id_sql)";
}
***************
*** 768,772 ****
{
$sql = "UPDATE " . POSTS_TABLE . "
! SET topic_id = $new_topic_id
WHERE post_time >= $post_time
AND topic_id = $topic_id";
--- 767,771 ----
{
$sql = "UPDATE " . POSTS_TABLE . "
! SET topic_id = $new_topic_id, forum_id = $new_forum_id
WHERE post_time >= $post_time
AND topic_id = $topic_id";
***************
*** 780,783 ****
--- 779,783 ----
sync("topic", $new_topic_id);
sync("topic", $topic_id);
+ sync("forum", $new_forum_id);
sync("forum", $forum_id);
***************
*** 786,790 ****
);
! $message = $lang['Topic_split'] . " " . sprintf($lang['Click_return_topic'], "<a href=\"" . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
--- 786,790 ----
);
! $message = $lang['Topic_split'] . "<br /><br />" . sprintf($lang['Click_return_topic'], "<a href=\"" . append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id") . "\">", "</a>");
message_die(GENERAL_MESSAGE, $message);
}
|