diff options
author | David M <davidmj@users.sourceforge.net> | 2007-03-24 16:08:20 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-03-24 16:08:20 +0000 |
commit | cbbc6cabcbd05fda58e3f1591ff59ee5e9c3eab0 (patch) | |
tree | a09ae6c148bf1b4286e3076f4a256dac8fedd35e /phpBB/includes/ucp/ucp_pm_compose.php | |
parent | 3fc6fccdebe950cb0f4d5a546be4374d2d3c8049 (diff) | |
download | forums-cbbc6cabcbd05fda58e3f1591ff59ee5e9c3eab0.tar forums-cbbc6cabcbd05fda58e3f1591ff59ee5e9c3eab0.tar.gz forums-cbbc6cabcbd05fda58e3f1591ff59ee5e9c3eab0.tar.bz2 forums-cbbc6cabcbd05fda58e3f1591ff59ee5e9c3eab0.tar.xz forums-cbbc6cabcbd05fda58e3f1591ff59ee5e9c3eab0.zip |
#5084
git-svn-id: file:///svn/phpbb/trunk@7227 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_compose.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 4a3670ec80..52b2bbbb4d 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -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 && !$preview && $action == 'edit') + if ($message_attachment && !$submit && !$refresh && !$ && $action == 'edit') { // Do not change to SELECT * $sql = 'SELECT attach_id, is_orphan, attach_comment, real_filename @@ -633,6 +633,8 @@ 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, |