using json to load the mail allows to place everything message related in the view (e.g. the subject)

This commit is contained in:
HB9HIL
2024-10-28 12:37:31 +01:00
parent d22b3fda13
commit bbb1b8c976
3 changed files with 10 additions and 6 deletions

View File

@@ -469,7 +469,7 @@ class CI_Email {
* @param array $data = array()
* @param string language
*
* @return string message
* @return string message in json format
*/
public function load($view, $data = array(), $language = NULL) {
@@ -492,7 +492,7 @@ class CI_Email {
_setlocale(LC_ALL, $origin_lang);
}
return html_entity_decode($message);
return json_decode(html_entity_decode($message), true);
}
// --------------------------------------------------------------------