From: Roland Häder Date: Thu, 5 Nov 2009 17:54:37 +0000 (+0000) Subject: Use compileRawCode() for loading email templates X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7df843bde81b6f3a678bd855f96e7ade07fb8e0d;p=mailer.git Use compileRawCode() for loading email templates --- diff --git a/inc/functions.php b/inc/functions.php index dce5f6d7af..2add576617 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -498,7 +498,7 @@ function loadEmailTemplate ($template, $content = array(), $UID = '0') { $GLOBALS['tpl_content'] = readFromFile($FQFN); // Run code - $GLOBALS['tpl_content'] = "\$newContent = decodeEntities(\"".compileCode(smartAddSlashes($GLOBALS['tpl_content']))."\");"; + $GLOBALS['tpl_content'] = "\$newContent = decodeEntities(\"".compileRawCode(smartAddSlashes($GLOBALS['tpl_content']))."\");"; eval($GLOBALS['tpl_content']); } elseif (!empty($template)) { // Template file not found!