aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_warn.php
diff options
context:
space:
mode:
authorJoseph Warner <hardolaf@hardolaf.com>2013-09-06 20:35:18 -0400
committerJoseph Warner <hardolaf@hardolaf.com>2013-09-06 20:35:54 -0400
commit3a6b3d7c2b38b244d5c725ce1c7829328dae770f (patch)
treea05c248c1f3e99ad2ebbfb16f12427f059cd6e9e /phpBB/includes/mcp/mcp_warn.php
parentd5808f13e5fa70ecc802c2a5a11c3143746c93f0 (diff)
parent8d6b03c438392cebed941491684ff835bf7136a8 (diff)
downloadforums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar.gz
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar.bz2
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.tar.xz
forums-3a6b3d7c2b38b244d5c725ce1c7829328dae770f.zip
[feature/oauth] Merge branch 'develop' of git://github.com/phpbb/phpbb3 into feature/oauth
Conflicts: phpBB/composer.json phpBB/composer.lock phpBB/develop/create_schema_files.php phpBB/includes/ucp/ucp_register.php PHPBB3-11673
Diffstat (limited to 'phpBB/includes/mcp/mcp_warn.php')
-rw-r--r--phpBB/includes/mcp/mcp_warn.php15
1 files changed, 2 insertions, 13 deletions
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php
index 4ef477775d..bb21d3d377 100644
--- a/phpBB/includes/mcp/mcp_warn.php
+++ b/phpBB/includes/mcp/mcp_warn.php
@@ -289,19 +289,8 @@ class mcp_warn
// We want to make the message available here as a reminder
// Parse the message and subject
- $message = censor_text($user_row['post_text']);
-
- // Second parse bbcode here
- if ($user_row['bbcode_bitfield'])
- {
- include_once($phpbb_root_path . 'includes/bbcode.' . $phpEx);
-
- $bbcode = new bbcode($user_row['bbcode_bitfield']);
- $bbcode->bbcode_second_pass($message, $user_row['bbcode_uid'], $user_row['bbcode_bitfield']);
- }
-
- $message = bbcode_nl2br($message);
- $message = smiley_text($message);
+ $parse_flags = OPTION_FLAG_SMILIES | ($row['bbcode_bitfield'] ? OPTION_FLAG_BBCODE : 0);
+ $message = generate_text_for_display($user_row['post_text'], $user_row['bbcode_uid'], $user_row['bbcode_bitfield'], $parse_flags, true);
// Generate the appropriate user information for the user we are looking at
if (!function_exists('phpbb_get_user_avatar'))