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 dce5f6d..2add576 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!