Index: trunk/core/kernel/parser/template_parser.php =================================================================== diff -u -r2905 -r3282 --- trunk/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 2905) +++ trunk/core/kernel/parser/template_parser.php (.../template_parser.php) (revision 3282) @@ -432,7 +432,7 @@ if (defined('SAFE_MODE') && SAFE_MODE) { if (!isset($conn)) $conn =& $this->Application->GetADODBConnection(); - $conn->Query('REPLACE INTO '.TABLE_PREFIX.'Cache (VarName, Data, Cached) VALUES ('.$conn->qstr($fname).','.$conn->qstr($this->CompiledBuffer).','.mktime().')'); + $conn->Query('REPLACE INTO '.TABLE_PREFIX.'Cache (VarName, Data, Cached) VALUES ('.$conn->qstr($fname).','.$conn->qstr($this->CompiledBuffer).','.adodb_mktime().')'); } else { $compiled = fopen($fname, 'w');