mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-23 03:19:01 +01:00
Merge pull request #2360 from Nicofuma/ticket/12025
[ticket/12025] Post Preview no longer shows warnings * Nicofuma/ticket/12025: [ticket/12025] Apply DeMorgan [ticket/12025] Fixing the condition.... [ticket/12025] Don't show any error on preview if the message is empty [ticket/12025] Post Preview no longer shows warnings
This commit is contained in:
commit
44d593ad85
@ -894,10 +894,13 @@ if ($submit || $preview || $refresh)
|
||||
$message_parser->warn_msg = array();
|
||||
}
|
||||
|
||||
$message_parser->parse($post_data['enable_bbcode'], ($config['allow_post_links']) ? $post_data['enable_urls'] : false, $post_data['enable_smilies'], $img_status, $flash_status, $quote_status, $config['allow_post_links']);
|
||||
if (!$preview || !empty($message_parser->message))
|
||||
{
|
||||
$message_parser->parse($post_data['enable_bbcode'], ($config['allow_post_links']) ? $post_data['enable_urls'] : false, $post_data['enable_smilies'], $img_status, $flash_status, $quote_status, $config['allow_post_links']);
|
||||
}
|
||||
|
||||
// On a refresh we do not care about message parsing errors
|
||||
if (sizeof($message_parser->warn_msg) && $refresh)
|
||||
if (sizeof($message_parser->warn_msg) && $refresh && !$preview)
|
||||
{
|
||||
$message_parser->warn_msg = array();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user