Commit f738fcab by Seldaek

* Small bug fix for smarty function handling with no parameters

git-svn-id: svn://dwoo.org/dwoo/trunk@149 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent a290bfd4
......@@ -1501,7 +1501,11 @@ class Dwoo_Compiler implements Dwoo_ICompiler
$output = call_user_func(array($this->dwoo->getPluginProxy(), $func));
}
} elseif ($pluginType & Dwoo::SMARTY_FUNCTION) {
if (isset($params['*'])) {
$params = self::implode_r($params['*'], true);
} else {
$params = '';
}
if ($pluginType & Dwoo::CUSTOM_PLUGIN) {
$callback = $this->customPlugins[$func]['callback'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment