// Are there some content?
if (empty($newContent)) {
// Compiling failed
- $newContent = "Compiler error for template " . $template . " !\nUncompiled content:\n" . $GLOBALS['template_content']['email'][$template];
+ $newContent = "Compiler error for template " . $template . " !\nUncompiled content:\n" . $GLOBALS['template_eval']['email'][$template];
// Add last error if the required function exists
if (function_exists('error_get_last')) {
// Compile constants
if ($simple === FALSE) {
// Add more 'from'
- array_push($charsCompile['from'], '{--', '--}');
+ array_unshift($charsCompile['from'], '{--', '--}');
// Add more 'to'
- array_push($charsCompile['to'], '".', '."');
+ array_unshift($charsCompile['to'], '".', '."');
} // END - if
// Compile QUOT and other non-HTML codes
- $code = str_replace($charsCompile['from'], $charsCompile['to'], $code);
+ $code = str_replace($charsCompile['from'], $charsCompile['to'], decodeEntities($code));
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'code=' . $code);
// Return compiled code
return $code;
$OUT = '<span title="{--ADMIN_EXTENSION_IS_DEPRECATED_TITLE--}">---</span>';
} elseif (isExtensionProductive($ext_name)) {
// Productive code
- $OUT = '<a title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{%url=modules.php?module=admin&what=extensions&reg_ext=' . $ext_name . '%}">{--ADMIN_REGISTER_EXTENSION--}</a>';
+ $OUT = '<a title="{--ADMIN_REGISTER_EXTENSION_TITLE--}" href="{%url=modules.php?module=admin&what=extensions&register_ext=' . $ext_name . '%}">{--ADMIN_REGISTER_EXTENSION--}</a>';
}
// Return code