mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
- update of getCachedTimestamp()
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
- Renamed a couple of internal classes
|
||||
- code cleanup for merging compiled templates
|
||||
- couple of runtime optimizations (still not all done)
|
||||
- update of getCachedTimestamp()
|
||||
|
||||
12/19/2009
|
||||
- bugfix on comment lines in config files
|
||||
|
@@ -38,8 +38,8 @@ class Smarty_Internal_CacheResource_File {
|
||||
*/
|
||||
public function getCachedTimestamp($template)
|
||||
{
|
||||
return @filemtime($template->getCachedFilepath());
|
||||
// return ($template->getCachedFilepath() && file_exists($template->getCachedFilepath())) ? filemtime($template->getCachedFilepath()) : false ;
|
||||
//return @filemtime($template->getCachedFilepath());
|
||||
return ($template->getCachedFilepath() && file_exists($template->getCachedFilepath())) ? filemtime($template->getCachedFilepath()) : false ;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user