diff options
| author | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
|---|---|---|
| committer | emkael <emkael@tlen.pl> | 2018-10-18 02:40:38 +0200 |
| commit | eab8a101e7a3fcbb41e01a574985e06c5a3775de (patch) | |
| tree | 60f201da5984b0c3638d10da02bba42b61aa3177 /lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php | |
| parent | 7f38be342c1495aeca418286c15c25c18ac9e142 (diff) | |
Updating Smarty
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php')
| -rw-r--r-- | lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php b/lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php index 987bc96..0f818d1 100644 --- a/lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php +++ b/lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php @@ -20,9 +20,9 @@ class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_C * Setup callback, parameter array and nocache mode * * @param \Smarty_Internal_TemplateCompilerBase $compiler - * @param array $_attr attributes - * @param string $tag - * @param null $function + * @param array $_attr attributes + * @param string $tag + * @param null $function * * @return array */ @@ -61,7 +61,7 @@ class Smarty_Internal_Compile_Private_Registered_Block extends Smarty_Internal_C if (is_int($_key)) { $_paramsArray[] = "$_key=>$_value"; } elseif ($compiler->template->caching && in_array($_key, $tag_info[ 2 ])) { - $_value = str_replace("'", "^#^", $_value); + $_value = str_replace('\'', "^#^", $_value); $_paramsArray[] = "'$_key'=>^#^.var_export($_value,true).^#^"; } else { $_paramsArray[] = "'$_key'=>$_value"; |
