diff options
| author | Nicofuma <github@nicofuma.fr> | 2014-04-27 23:11:10 +0200 |
|---|---|---|
| committer | Nicofuma <github@nicofuma.fr> | 2014-04-27 23:11:10 +0200 |
| commit | 8facf2b8d9980ef92ad519ebf004e1bdc1c4d287 (patch) | |
| tree | 85480a3a03bb81b980ef68676770c2239337d524 /phpBB/posting.php | |
| parent | 0ef920eb427203e27cb56c19d2a6894ba79786c4 (diff) | |
| download | forums-8facf2b8d9980ef92ad519ebf004e1bdc1c4d287.tar forums-8facf2b8d9980ef92ad519ebf004e1bdc1c4d287.tar.gz forums-8facf2b8d9980ef92ad519ebf004e1bdc1c4d287.tar.bz2 forums-8facf2b8d9980ef92ad519ebf004e1bdc1c4d287.tar.xz forums-8facf2b8d9980ef92ad519ebf004e1bdc1c4d287.zip | |
[ticket/12025] Don't show any error on preview if the message is empty
PHPBB3-12025
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 975f4bd079..47b366fce0 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -879,7 +879,10 @@ 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 && !$preview) |
