- Moved constants EMAIL_KONTAKT_TYPE and SENT_INFO_NEWLINE from config/constants.php to MessageLib

- Added function parseTemplate to helper helpers/hlp_common_helper.php
- Changed method getMessages of model models/system/Recipient_model.php
- Changed views/templates/mailHTML.php and views/templates/mailTXT.php
This commit is contained in:
Paolo
2019-06-13 14:09:56 +02:00
parent 2ef386c34e
commit a5b3f0ed88
5 changed files with 25 additions and 24 deletions
+13 -1
View File
@@ -241,7 +241,7 @@ function isDateWorkingDay($date, $days = null)
}
/**
* Parse the given given text using the given data parameter
* Parse the given text using the given data parameter
* Use the CI parser which performs simple text substitution for pseudo-variable
*/
function parseText($text, $data)
@@ -251,3 +251,15 @@ function parseText($text, $data)
return $ci->parser->parse_string($text, $data, true);
}
/**
* Parse the given template using the given data parameter
* Use the CI parser which performs simple text substitution for pseudo-variable
*/
function parseTemplate($template, $data)
{
$ci =& get_instance(); // get CI instance
$ci->load->library('parser'); // Loads CI parser library
return $ci->parser->parse($template, $data, true);
}