mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
Passing Smarty as second parameter to prefilter functions.
This commit is contained in:
@@ -67,7 +67,7 @@ class Smarty_Compiler extends Smarty {
|
||||
if (is_array($this->prefilter_funcs) && count($this->prefilter_funcs) > 0) {
|
||||
foreach ($this->prefilter_funcs as $prefilter) {
|
||||
if (function_exists($prefilter)) {
|
||||
$template_source = $prefilter($template_source);
|
||||
$template_source = $prefilter($template_source, $this);
|
||||
} else {
|
||||
$this->_trigger_error_msg("prefilter function $prefilter does not exist.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user