[geeklog-hg] geeklog: Only show cache comments when the config option templat...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Nov 30 09:13:39 EST 2013
changeset 9344:e4f733d4526b
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e4f733d4526b
user: Tom <websitemaster at cogeco.net>
date: Sat Nov 30 09:13:07 2013 -0500
description:
Only show cache comments when the config option template_comments is set to true
diffstat:
system/classes/template.class.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (15 lines):
diff -r e23ec3a9827e -r e4f733d4526b system/classes/template.class.php
--- a/system/classes/template.class.php Mon Nov 25 20:15:21 2013 -0500
+++ b/system/classes/template.class.php Sat Nov 30 09:13:07 2013 -0500
@@ -1935,9 +1935,9 @@
// COMMENT ORIGINAL LINE below out since not sure why changing dashes to under scores ... this affects articles and staticpages
// $iid = str_replace('-','_',$iid);
$filename = $path_cache.'instance__'.$iid.'.php';
- $tmplt = '<!-- begin cached as '.htmlspecialchars($iid)." -->\n"
+ $tmplt = '{# begin cached as '.htmlspecialchars($iid)." #}\n"
. $tmplt
- . '<!-- end cached as '.htmlspecialchars($iid)." -->\n";
+ . '{# end cached as '.htmlspecialchars($iid)." #}\n";
$this->cache_write($filename, $tmplt);
$this->unknowns = $old_unknowns;
return $filename;
More information about the geeklog-cvs
mailing list