mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-13 10:29:53 +01:00
Fixed CacheResource implementation and tests
This commit is contained in:
@@ -181,6 +181,17 @@ class BCPluginsAdapter extends Base {
|
||||
}
|
||||
}
|
||||
|
||||
$type = 'cacheresource';
|
||||
foreach (glob($path . $type . '.?*.php') as $filename) {
|
||||
$pluginName = $this->getPluginNameFromFilename($filename);
|
||||
if ($pluginName !== null) {
|
||||
require_once $filename;
|
||||
if (class_exists($className = 'smarty_' . $type . '_' . $pluginName)) {
|
||||
$this->smarty->registerCacheResource($pluginName, new $className());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user