From 7913fd5d135b5466e5c63921992167f3678a3b7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 16 Sep 2022 16:19:14 +0200 Subject: [PATCH] Continued: - also use here a mask --- inc/template-functions.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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'; -- 2.39.5