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
@@ -21,7 +21,7 @@ abstract class Smarty_CacheResource
* @var array
*/
protected static $sysplugins = array(
'file' => true,
'file' => 'smarty_internal_cacheresource_file.php',
);
/**
@@ -198,6 +198,9 @@ abstract class Smarty_CacheResource
// try sysplugins dir
if (isset(self::$sysplugins[$type])) {
$cache_resource_class = 'Smarty_Internal_CacheResource_' . ucfirst($type);
if (!class_exists($cache_resource_class, false)) {
require SMARTY_SYSPLUGINS_DIR . self::$sysplugins[$type];
}
return $smarty->_cacheresource_handlers[$type] = new $cache_resource_class();
}
// try plugins dir