$GLOBALS['template_eval']['email'][$template] = '$templateContent = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['template_content']['email'][$template])) . '");';
} elseif (!empty($template)) {
// Template file not found
- $templateContent = '<div class="para">
- {--TEMPLATE_404--}: ' . $template . '
+ $templateContent = sprintf('<div class="para">
+ {--TEMPLATE_404--}: %s
</div>
<div class="para">
{--TEMPLATE_CONTENT--}:
- <pre>' . print_r($content, TRUE) . '</pre>
-</div>';
+ <pre>%s</pre>
+</div>',
+ $template,
+ print_r($content, TRUE)
+ );
// Don't cache this, as there is no template to cache
$GLOBALS['template_eval']['email'][$template] = '404';