- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls

This commit is contained in:
rodneyrehm
2011-10-10 19:31:34 +00:00
parent d3258767a6
commit 352cb05cf5
2 changed files with 3 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
10.10.2011
- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54)
- bugfix <?xml> tag did create wrong output when caching enabled and the tag was in included subtemplate
- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls
===== Smarty-3.1.3 =====
07.10.2011

View File

@@ -61,7 +61,7 @@ class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom {
$this->fetch->closeCursor();
if ($row) {
$content = $row['content'];
$mtime = $row['modified'];
$mtime = strtotime($row['modified']);
} else {
$content = null;
$mtime = null;
@@ -81,7 +81,7 @@ class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom {
protected function fetchTimestamp($id, $name, $cache_id, $compile_id)
{
$this->fetchTimestamp->execute(array('id' => $id));
$mtime = $this->fetchTimestamp->fetchColumn();
$mtime = strtotime($this->fetchTimestamp->fetchColumn());
$this->fetchTimestamp->closeCursor();
return $mtime;
}