mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02:00
[feature/save-post-on-report] bbcode_nl2br missing.
New lines were missing in the reported_post_text. By adding the bbcode_nl2br() became as it is supposed to. PHPBB3-10600
This commit is contained in:
parent
165a2d1aa8
commit
28c6b95100
@ -116,8 +116,9 @@ class mcp_reports
|
||||
$template->assign_vars(array(
|
||||
'S_TOPIC_REVIEW' => true,
|
||||
'S_BBCODE_ALLOWED' => $post_info['enable_bbcode'],
|
||||
'TOPIC_TITLE' => $post_info['topic_title'])
|
||||
);
|
||||
'TOPIC_TITLE' => $post_info['topic_title'],
|
||||
'REPORTED_POST_ID' => $post_id,
|
||||
));
|
||||
}
|
||||
|
||||
$topic_tracking_info = $extensions = $attachments = array();
|
||||
@ -226,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' => $report['reported_post_text'],
|
||||
'POST_PREVIEW' => bbcode_nl2br($report['reported_post_text']),
|
||||
'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'],
|
||||
|
@ -17,7 +17,7 @@
|
||||
<div class="inner"><span class="corners-top"><span></span></span>
|
||||
{topic_review_row.L_IGNORE_POST}
|
||||
<!-- ELSE -->
|
||||
<div class="post <!-- IF topic_review_row.POST_ID == REPORTED_POST_ID -->reported<!-- ELSEIF topic_review_row.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF -->">
|
||||
<div class="post <!-- IF topic_review_row.S_ROW_COUNT is odd -->bg1<!-- ELSE -->bg2<!-- ENDIF --><!-- IF topic_review_row.POST_ID == REPORTED_POST_ID --> reported<!-- ENDIF -->">
|
||||
<div class="inner"><span class="corners-top"><span></span></span>
|
||||
<!-- ENDIF -->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user