projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5196b1
)
Use compileRawCode() for loading email templates
author
Roland Häder
<roland@mxchange.org>
Thu, 5 Nov 2009 17:54:37 +0000
(17:54 +0000)
committer
Roland Häder
<roland@mxchange.org>
Thu, 5 Nov 2009 17:54:37 +0000
(17:54 +0000)
inc/functions.php
patch
|
blob
|
history
diff --git
a/inc/functions.php
b/inc/functions.php
index dce5f6d7af0763d8fd08e702e2199e24ca399f0e..2add576617475d43f8dbd5cb4e5c813cdbb4b13c 100644
(file)
--- 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(\"".compile
Raw
Code(smartAddSlashes($GLOBALS['tpl_content']))."\");";
eval($GLOBALS['tpl_content']);
} elseif (!empty($template)) {
// Template file not found!