mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@7240 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
250c4c139c
commit
331a549c42
1 changed files with 12 additions and 11 deletions
|
@ -505,9 +505,21 @@ function compose_pm($id, $mode, $action)
|
||||||
// Parse Attachments - before checksum is calculated
|
// Parse Attachments - before checksum is calculated
|
||||||
$message_parser->parse_attachments('fileupload', $action, 0, $submit, $preview, $refresh, true);
|
$message_parser->parse_attachments('fileupload', $action, 0, $submit, $preview, $refresh, true);
|
||||||
|
|
||||||
|
if (sizeof($message_parser->warn_msg) && !($remove_u || $remove_g || $add_to || $add_bcc))
|
||||||
|
{
|
||||||
|
$error[] = implode('<br />', $message_parser->warn_msg);
|
||||||
|
$message_parser->warn_msg = array();
|
||||||
|
}
|
||||||
|
|
||||||
// Parse message
|
// Parse message
|
||||||
$message_parser->parse($enable_bbcode, ($config['allow_post_links']) ? $enable_urls : false, $enable_smilies, $img_status, $flash_status, true, $config['allow_sig_links']);
|
$message_parser->parse($enable_bbcode, ($config['allow_post_links']) ? $enable_urls : false, $enable_smilies, $img_status, $flash_status, true, $config['allow_sig_links']);
|
||||||
|
|
||||||
|
// On a refresh we do not care about message parsing errors
|
||||||
|
if (sizeof($message_parser->warn_msg) && !$refresh)
|
||||||
|
{
|
||||||
|
$error[] = implode('<br />', $message_parser->warn_msg);
|
||||||
|
}
|
||||||
|
|
||||||
if ($action != 'edit' && !$preview && !$refresh && $config['flood_interval'] && !$auth->acl_get('u_ignoreflood'))
|
if ($action != 'edit' && !$preview && !$refresh && $config['flood_interval'] && !$auth->acl_get('u_ignoreflood'))
|
||||||
{
|
{
|
||||||
// Flood check
|
// Flood check
|
||||||
|
@ -536,17 +548,6 @@ function compose_pm($id, $mode, $action)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// On a refresh we do not care about message parsing errors
|
|
||||||
if (sizeof($message_parser->warn_msg) && $refresh)
|
|
||||||
{
|
|
||||||
$message_parser->warn_msg = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (sizeof($message_parser->warn_msg) && !($remove_u || $remove_g || $add_to || $add_bcc))
|
|
||||||
{
|
|
||||||
$error[] = implode('<br />', $message_parser->warn_msg);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Store message, sync counters
|
// Store message, sync counters
|
||||||
if (!sizeof($error) && $submit)
|
if (!sizeof($error) && $submit)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue