mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-31 08:27:14 +02:00
Bugfix/bcpluginsadapter support modifiercompiler (#1132)
* Add support for modifiercompiler in the BCPluginsAdapter class. --------- Co-authored-by: Anne Zijlstra <a.zijlstra@iwink.nl>
This commit is contained in:
@ -168,7 +168,6 @@ class BCPluginsAdapter extends Base {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function loadPluginsFromDir(string $path) {
|
public function loadPluginsFromDir(string $path) {
|
||||||
|
|
||||||
foreach([
|
foreach([
|
||||||
'function',
|
'function',
|
||||||
'modifier',
|
'modifier',
|
||||||
@ -177,6 +176,7 @@ class BCPluginsAdapter extends Base {
|
|||||||
'prefilter',
|
'prefilter',
|
||||||
'postfilter',
|
'postfilter',
|
||||||
'outputfilter',
|
'outputfilter',
|
||||||
|
'modifiercompiler',
|
||||||
] as $type) {
|
] as $type) {
|
||||||
foreach (glob($path . $type . '.?*.php') as $filename) {
|
foreach (glob($path . $type . '.?*.php') as $filename) {
|
||||||
$pluginName = $this->getPluginNameFromFilename($filename);
|
$pluginName = $this->getPluginNameFromFilename($filename);
|
||||||
@ -226,4 +226,4 @@ class BCPluginsAdapter extends Base {
|
|||||||
return $matches[1];
|
return $matches[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user