All HTML templates now output comments again
authorRoland Häder <roland@mxchange.org>
Wed, 4 Nov 2009 06:19:22 +0000 (06:19 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 4 Nov 2009 06:19:22 +0000 (06:19 +0000)
inc/functions.php

index 049a7cb9c1252dd342cb910a3de412b67222fed1..b6d40608d3a53662d16bb29357b04d4dc28e2367 100644 (file)
@@ -327,7 +327,7 @@ function loadTemplate ($template, $return=false, $content=array()) {
                                        $ret = "<!-- Template " . $template . " - Start -->\n" . $GLOBALS['tpl_content'] . "<!-- Template " . $template . " - End -->\n";
 
                                        // Prepare eval() command
                                        $ret = "<!-- Template " . $template . " - Start -->\n" . $GLOBALS['tpl_content'] . "<!-- Template " . $template . " - End -->\n";
 
                                        // Prepare eval() command
-                                       $eval = '$ret = "' . compileCode(smartAddSlashes($GLOBALS['tpl_content'])) . '";';
+                                       $eval = '$ret = "' . compileCode(smartAddSlashes($ret)) . '";';
                                } else {
                                        // Prepare eval() command
                                        $eval = '$ret = "' . compileCode(smartAddSlashes($GLOBALS['tpl_content'])) . '";';
                                } else {
                                        // Prepare eval() command
                                        $eval = '$ret = "' . compileCode(smartAddSlashes($GLOBALS['tpl_content'])) . '";';