From 71c39fd5521da659598dd1d35d572d6221b46b12 Mon Sep 17 00:00:00 2001 From: pero1203 Date: Thu, 26 Aug 2021 10:05:04 +0200 Subject: [PATCH] Popravek nl2br za stara obvestila uporabnikom --- admin/survey/classes/class.Notifications.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/admin/survey/classes/class.Notifications.php b/admin/survey/classes/class.Notifications.php index 90c2f6dff..20d057087 100644 --- a/admin/survey/classes/class.Notifications.php +++ b/admin/survey/classes/class.Notifications.php @@ -338,8 +338,13 @@ class Notifications { // Prikaz izbranega sporocila echo '
'; + echo ''.$row['title'].' ('.$row['date'].')'; - echo '

'.$row['text'].'

'; + + // Stara sporocila so brez editorja + $text = (strpos($row['text'], '\n') !== false) ? nl2br($row['text']) : $row['text']; + echo '

'.$text.'

'; + echo '
'; echo '
'; @@ -362,7 +367,9 @@ class Notifications { echo ''.$row['title'].' ('.$row['date'].')'; - echo '
'.$row['text']; + // Stara sporocila so brez editorja + $text = (strpos($row['text'], '\n') !== false) ? nl2br($row['text']) : $row['text']; + echo '
'.$text; echo ''; }