]> git.mxchange.org Git - mailer.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 16 Sep 2022 14:19:14 +0000 (16:19 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 16 Sep 2022 14:19:14 +0000 (16:19 +0200)
- also use here a mask

inc/template-functions.php

index 88269aafebe2755d3c0ca8f091c0762f6dae80b3..c0bb014ea8a899830a971896a772c90c6a3695c4 100644 (file)
@@ -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 = '<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';