mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-12 18:09:54 +01:00
Fixed cacheability of block plugins.
This commit is contained in:
@@ -57,8 +57,9 @@ class BCPluginsAdapter extends Base {
|
||||
return null;
|
||||
}
|
||||
$callback = $plugin[0];
|
||||
$cacheable = (bool) $plugin[1] ?? true;
|
||||
|
||||
return new BlockPluginWrapper($callback);
|
||||
return new BlockPluginWrapper($callback, $cacheable);
|
||||
}
|
||||
|
||||
public function getModifierCallback(string $modifierName) {
|
||||
|
||||
Reference in New Issue
Block a user