aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicofuma <github@nicofuma.fr>2014-04-26 15:01:30 +0200
committerNicofuma <github@nicofuma.fr>2014-04-26 15:01:30 +0200
commit0ef920eb427203e27cb56c19d2a6894ba79786c4 (patch)
treef87940ca899834644f631eaa1a108d73de85347b
parent9eedd45aac7670c1fdd4076755b1f807d2587d3d (diff)
downloadforums-0ef920eb427203e27cb56c19d2a6894ba79786c4.tar
forums-0ef920eb427203e27cb56c19d2a6894ba79786c4.tar.gz
forums-0ef920eb427203e27cb56c19d2a6894ba79786c4.tar.bz2
forums-0ef920eb427203e27cb56c19d2a6894ba79786c4.tar.xz
forums-0ef920eb427203e27cb56c19d2a6894ba79786c4.zip
[ticket/12025] Post Preview no longer shows warnings
https://tracker.phpbb.com/browse/PHPBB3-12025 PHPBB3-12025
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index ed1268e84b..975f4bd079 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -882,7 +882,7 @@ if ($submit || $preview || $refresh)
$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();
}