diff options
author | Bruno Ais <brunoaiss@gmail.com> | 2012-05-02 17:13:39 +0100 |
---|---|---|
committer | Bruno Ais <brunoaiss@gmail.com> | 2012-05-02 17:13:39 +0100 |
commit | 593ef7885957fec3ac5f1a45b9ff04bed9254105 (patch) | |
tree | e1c28f52646d06b781ac23f77e0bf795a9b9d04c /phpBB/includes/mcp/mcp_reports.php | |
parent | 06f4ef8852ef137b4a721c89a8e7535151df9811 (diff) | |
download | forums-593ef7885957fec3ac5f1a45b9ff04bed9254105.tar forums-593ef7885957fec3ac5f1a45b9ff04bed9254105.tar.gz forums-593ef7885957fec3ac5f1a45b9ff04bed9254105.tar.bz2 forums-593ef7885957fec3ac5f1a45b9ff04bed9254105.tar.xz forums-593ef7885957fec3ac5f1a45b9ff04bed9254105.zip |
[ticket/10845] Remove censor from text
In order to remove the censor, I added a new parameter to
generate_text_for_display(), that new parameter is used to tell if the text
should be censored or not. Defaults to true.
PHPBB3-10845
Diffstat (limited to 'phpBB/includes/mcp/mcp_reports.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_reports.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php index d71c111486..87c5eaeadc 100644 --- a/phpBB/includes/mcp/mcp_reports.php +++ b/phpBB/includes/mcp/mcp_reports.php @@ -227,7 +227,7 @@ class mcp_reports 'REPORTER_NAME' => get_username_string('username', $report['user_id'], $report['username'], $report['user_colour']), 'U_VIEW_REPORTER_PROFILE' => get_username_string('profile', $report['user_id'], $report['username'], $report['user_colour']), - 'POST_PREVIEW' => bbcode_nl2br(generate_text_for_display($report['reported_post_text'], $report['reported_post_uid'], $report['reported_post_bitfield'], OPTION_FLAG_BBCODE + OPTION_FLAG_SMILIES + OPTION_FLAG_LINKS)), + 'POST_PREVIEW' => generate_text_for_display($report['reported_post_text'], $report['reported_post_uid'], $report['reported_post_bitfield'], OPTION_FLAG_BBCODE | OPTION_FLAG_SMILIES, false), 'POST_SUBJECT' => ($post_info['post_subject']) ? $post_info['post_subject'] : $user->lang['NO_SUBJECT'], 'POST_DATE' => $user->format_date($post_info['post_time']), 'POST_IP' => $post_info['poster_ip'], |