Use compileRawCode() for loading email templates
authorRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 17:54:37 +0000 (17:54 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 5 Nov 2009 17:54:37 +0000 (17:54 +0000)
inc/functions.php

index dce5f6d7af0763d8fd08e702e2199e24ca399f0e..2add576617475d43f8dbd5cb4e5c813cdbb4b13c 100644 (file)
@@ -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!