From: Roland Häder Date: Fri, 16 Sep 2022 14:19:14 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7913fd5d135b5466e5c63921992167f3678a3b7d;p=mailer.git Continued: - also use here a mask --- diff --git a/inc/template-functions.php b/inc/template-functions.php index 88269aafeb..c0bb014ea8 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -536,13 +536,16 @@ function loadEmailTemplate ($template, $content = [], $userid = NULL, $loadUserD $GLOBALS['template_eval']['email'][$template] = '$templateContent = decodeEntities("' . compileRawCode(escapeQuotes($GLOBALS['template_content']['email'][$template])) . '");'; } elseif (!empty($template)) { // Template file not found - $templateContent = '
- {--TEMPLATE_404--}: ' . $template . ' + $templateContent = sprintf('
+ {--TEMPLATE_404--}: %s
{--TEMPLATE_CONTENT--}: -
' . print_r($content, TRUE) . '
-
'; +
%s
+
', + $template, + print_r($content, TRUE) + ); // Don't cache this, as there is no template to cache $GLOBALS['template_eval']['email'][$template] = '404';