mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added possibility to display comments with line breaks in event detail
This commit is contained in:
parent
e35edd92b3
commit
5913f815d1
@ -4719,7 +4719,7 @@ function events_page_comments($event, $ajax=false)
|
||||
foreach ($comm as $c) {
|
||||
$data[0] = '<b>'.$c['action'].' by '.$c['id_user'].'</b>';
|
||||
$data[0] .= '<br><br><i>'.date($config['date_format'], $c['utimestamp']).'</i>';
|
||||
$data[1] = '<p style="word-break: break-word;">'.$c['comment'].'</p>';
|
||||
$data[1] = '<p style="word-break: break-word;">'.stripslashes(str_replace(['\n', '\r'], '<br/>', $c['comment'])).'</p>';
|
||||
$table_comments->data[] = $data;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user