X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffunctions.php;h=a52770e945268a7f3031c3c348bee40c18b73f06;hb=8268379f7f0f38f5cd605714ecd5cbfacff0e282;hp=4c5ca96fa50f0e41fc16d68381efe35fccb8dd1d;hpb=392c181338f84b2e0e0fdfbd304b1ca9d8da077e;p=mailer.git diff --git a/inc/functions.php b/inc/functions.php index 4c5ca96fa5..a52770e945 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -363,8 +363,9 @@ function loadTemplate ($template, $return=false, $content=array()) { $eval = '$ret = "' . compileCode(smartAddSlashes($GLOBALS['tpl_content'])) . '";'; } } else { - // Simply return loaded code - $eval = '$ret = $GLOBALS[\'tpl_content\'];'; + // Add surrounding HTML comments to help finding bugs faster + $ret = "\n" . $GLOBALS['tpl_content'] . "\n"; + $eval = '$ret = "' . smartAddSlashes($ret) . '";'; } // END - if // Cache the eval() command here @@ -3060,7 +3061,7 @@ function rebuildCacheFile ($cache, $inc = '', $force = false) { // Rebuild cache if ($GLOBALS['cache_instance']->loadCacheFile($cache)) { // Destroy it - $GLOBALS['cache_instance']->removeCacheFile(false, $force); + $GLOBALS['cache_instance']->removeCacheFile($force); } // END - if // Include file given?