Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit d6d520b

Browse files
fix: exclude plugin uuid from template function name
1 parent fd7ca15 commit d6d520b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Dwoo/Compiler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ protected function parseFunction($in, $from, $to, $parsingParams = false, $curBl
20312031
} elseif ($pluginType & Dwoo_Core::TEMPLATE_PLUGIN) {
20322032
array_unshift($params, '$this');
20332033
$params = self::implode_r($params);
2034-
$output = 'Dwoo_Plugin_'.$func.'_'.$this->templatePlugins[$func]['uuid'].'('.$params.')';
2034+
$output = 'Dwoo_Plugin_'.$func.'('.$params.')';
20352035
$this->templatePlugins[$func]['called'] = true;
20362036
}
20372037

lib/plugins/builtin/blocks/template.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public static function postProcessing(Dwoo_Compiler $compiler, array $params, $p
7171
}
7272
$init .= '/* -- template start output */';
7373

74-
$funcName = 'Dwoo_Plugin_'.$params['name'].'_'.$params['uuid'];
74+
$funcName = 'Dwoo_Plugin_'.$params['name'];
7575

7676
$search = array(
7777
'$this->charset',

0 commit comments

Comments
 (0)