mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
- bugfix Smarty_CacheResource_mysql example was missing strtotime() calls
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
10.10.2011
|
10.10.2011
|
||||||
- bugfix variable name typo in {html_options} and {html_checkboxes} (Issue #54)
|
- 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 <?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 =====
|
===== Smarty-3.1.3 =====
|
||||||
07.10.2011
|
07.10.2011
|
||||||
|
@@ -61,7 +61,7 @@ class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom {
|
|||||||
$this->fetch->closeCursor();
|
$this->fetch->closeCursor();
|
||||||
if ($row) {
|
if ($row) {
|
||||||
$content = $row['content'];
|
$content = $row['content'];
|
||||||
$mtime = $row['modified'];
|
$mtime = strtotime($row['modified']);
|
||||||
} else {
|
} else {
|
||||||
$content = null;
|
$content = null;
|
||||||
$mtime = null;
|
$mtime = null;
|
||||||
@@ -81,7 +81,7 @@ class Smarty_CacheResource_Mysql extends Smarty_CacheResource_Custom {
|
|||||||
protected function fetchTimestamp($id, $name, $cache_id, $compile_id)
|
protected function fetchTimestamp($id, $name, $cache_id, $compile_id)
|
||||||
{
|
{
|
||||||
$this->fetchTimestamp->execute(array('id' => $id));
|
$this->fetchTimestamp->execute(array('id' => $id));
|
||||||
$mtime = $this->fetchTimestamp->fetchColumn();
|
$mtime = strtotime($this->fetchTimestamp->fetchColumn());
|
||||||
$this->fetchTimestamp->closeCursor();
|
$this->fetchTimestamp->closeCursor();
|
||||||
return $mtime;
|
return $mtime;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user