- fixed spelling, PHPDoc , minor errors, code cleanup

This commit is contained in:
Uwe.Tews@googlemail.com
2014-06-06 02:40:04 +00:00
parent ca6a908c83
commit 425091a19f
130 changed files with 6618 additions and 4898 deletions
@@ -2,15 +2,15 @@
/**
* Smarty Internal Plugin Function Call Handler
*
* @package Smarty
* @package Smarty
* @subpackage PluginsInternal
* @author Uwe Tews
* @author Uwe Tews
*/
/**
* This class does call function defined with the {function} tag
*
* @package Smarty
* @package Smarty
* @subpackage PluginsInternal
*/
class Smarty_Internal_Function_Call_Handler
@@ -39,7 +39,7 @@ class Smarty_Internal_Function_Call_Handler
foreach (\$params as \$key => \$value) {\$_smarty_tpl->tpl_vars[\$key] = new Smarty_variable(\$value);}?>";
if ($_nocache) {
$_code .= preg_replace(array("!<\?php echo \\'/\*%%SmartyNocache:{$_template->smarty->template_functions[$_name]['nocache_hash']}%%\*/|/\*/%%SmartyNocache:{$_template->smarty->template_functions[$_name]['nocache_hash']}%%\*/\\';\?>!",
"!\\\'!"), array('', "'"), $_template->smarty->template_functions[$_name]['compiled']);
"!\\\'!"), array('', "'"), $_template->smarty->template_functions[$_name]['compiled']);
$_template->smarty->template_functions[$_name]['called_nocache'] = true;
} else {
$_code .= preg_replace("/{$_template->smarty->template_functions[$_name]['nocache_hash']}/", $_template->properties['nocache_hash'], $_template->smarty->template_functions[$_name]['compiled']);
@@ -49,5 +49,4 @@ class Smarty_Internal_Function_Call_Handler
}
$_function($_template, $_params);
}
}