Update to smarty 3.1.24.

(cherry picked from commit e33bbc8)
This commit is contained in:
Darko
2015-06-05 09:41:55 +02:00
parent e3943ca906
commit c9cd53ea49
40 changed files with 3113 additions and 4036 deletions
@@ -35,8 +35,10 @@ class Smarty_Internal_Extension_DefaultTemplateHandler
$_return = call_user_func_array($default_handler,
array($source->type, $source->name, &$_content, &$_timestamp, $source->smarty));
if (is_string($_return)) {
$source->timestamp = @filemtime($_return);
$source->exists = !!$source->timestamp;
$source->exists = is_file($_return);
if ($source->exists) {
$source->timestamp = filemtime($_return);
}
$source->filepath = $_return;
} elseif ($_return === true) {
$source->content = $_content;