From 884a9272a599e500d1e85bfe1c8bfc56597d9848 Mon Sep 17 00:00:00 2001 From: pero1203 Date: Thu, 11 Aug 2022 10:10:12 +0200 Subject: [PATCH] Kolektor - dokoncano posiljanje opomnikov respondentom --- .../modules/mod_KOLEKTOR/class.KolektorNotifications.php | 3 +++ admin/survey/modules/mod_KOLEKTOR/class.KolektorResponse.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/admin/survey/modules/mod_KOLEKTOR/class.KolektorNotifications.php b/admin/survey/modules/mod_KOLEKTOR/class.KolektorNotifications.php index 47bcc6bac..10622af57 100644 --- a/admin/survey/modules/mod_KOLEKTOR/class.KolektorNotifications.php +++ b/admin/survey/modules/mod_KOLEKTOR/class.KolektorNotifications.php @@ -72,6 +72,9 @@ class KolektorNotifications { // Zamenjamo line breake in #URL# //$body = nl2br(stripslashes($body)); + $body = str_replace('\r\n', '
', $body); + $body = str_replace('\n', '
', $body); + $body = stripslashes($body); $body = str_replace('#URL#', 'Kolektor anketa', $body); diff --git a/admin/survey/modules/mod_KOLEKTOR/class.KolektorResponse.php b/admin/survey/modules/mod_KOLEKTOR/class.KolektorResponse.php index afaf57e3e..962f8236b 100644 --- a/admin/survey/modules/mod_KOLEKTOR/class.KolektorResponse.php +++ b/admin/survey/modules/mod_KOLEKTOR/class.KolektorResponse.php @@ -136,7 +136,7 @@ class KolektorResponse { // Poslji email z vabilom na anketo $kn = new KolektorNotifications($respondent_id); - $kn->sendRespondentNotification(); + $kn->sendRespondentNotification($response_data['respondent_message']); // Uspesno prozenje