summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_internal_compile_private_registered_block.php
diff options
context:
space:
mode:
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.php8
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";