1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-28 14:05:23 +02:00
git-svn-id: file:///svn/phpbb/trunk@7228 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2007-03-24 16:49:06 +00:00
parent cbbc6cabcb
commit f269de0fd4

View File

@ -347,7 +347,7 @@ function compose_pm($id, $mode, $action)
// Further down (especially in submit_post()) we do not check this again.
$message_parser->get_submitted_attachment_data();
if ($message_attachment && !$submit && !$refresh && !$ && $action == 'edit')
if ($message_attachment && !$submit && !$refresh && !$preview && $action == 'edit')
{
// Do not change to SELECT *
$sql = 'SELECT attach_id, is_orphan, attach_comment, real_filename
@ -588,6 +588,7 @@ function compose_pm($id, $mode, $action)
// Preview
if (!sizeof($error) && $preview)
{
$user->add_lang('viewtopic');
$preview_message = $message_parser->format_display($enable_bbcode, $enable_urls, $enable_smilies, false);
$preview_signature = $user->data['user_sig'];
@ -633,8 +634,6 @@ function compose_pm($id, $mode, $action)
if (!sizeof($error))
{
$user->add_lang('viewtopic');
$template->assign_vars(array(
'PREVIEW_SUBJECT' => $preview_subject,
'PREVIEW_MESSAGE' => $preview_message,