mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Thanks APTX git-svn-id: file:///svn/phpbb/trunk@7537 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a1195a2752
commit
6244422da9
2 changed files with 7 additions and 1 deletions
|
@ -1432,7 +1432,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
|||
}
|
||||
else if ($mode == 'edit')
|
||||
{
|
||||
$post_mode = ($data['topic_first_post_id'] == $data['topic_last_post_id']) ? 'edit_topic' : (($data['topic_first_post_id'] == $data['post_id']) ? 'edit_first_post' : (($data['topic_last_post_id'] == $data['post_id']) ? 'edit_last_post' : 'edit'));
|
||||
$post_mode = ($data['topic_replies_real'] == 0) ? 'edit_topic' : (($data['topic_first_post_id'] == $data['post_id']) ? 'edit_first_post' : (($data['topic_last_post_id'] == $data['post_id']) ? 'edit_last_post' : 'edit'));
|
||||
}
|
||||
|
||||
// First of all make sure the subject and topic title are having the correct length.
|
||||
|
|
|
@ -951,6 +951,12 @@ if ($submit || $preview || $refresh)
|
|||
'topic_approved' => (isset($post_data['topic_approved'])) ? $post_data['topic_approved'] : false,
|
||||
'post_approved' => (isset($post_data['post_approved'])) ? $post_data['post_approved'] : false,
|
||||
);
|
||||
|
||||
if ($mode == 'edit')
|
||||
{
|
||||
$data['topic_replies_real'] = $post_data['topic_replies_real'];
|
||||
}
|
||||
|
||||
unset($message_parser);
|
||||
|
||||
$redirect_url = submit_post($mode, $post_data['post_subject'], $post_data['username'], $post_data['topic_type'], $poll, $data, $update_message);
|
||||
|
|
Loading…
Add table
Reference in a new issue