mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user