X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2FSmarty%2Flibs%2Fsysplugins%2Fsmarty_internal_compile_private_object_block_function.php;h=5418fefff0e3222a7e7a625b92aa48508f367d18;hb=a6aac8f950cd7a5d73ce32ee079156f14b8990ec;hp=cca924d103fd44cee1db5133f73ac40ec3445005;hpb=bfca7f47ef1f986ea8515d23c3c1962c7fe3a298;p=friendica.git diff --git a/library/Smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php b/library/Smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php index cca924d103..5418fefff0 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_compile_private_object_block_function.php @@ -1,22 +1,21 @@ getAttributes($compiler, $args); @@ -62,7 +62,7 @@ class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Inter // compile code $output = "smarty->_tag_stack[] = array('{$tag}->{$method}', {$_params}); \$_block_repeat=true; echo \$_smarty_tpl->smarty->registered_objects['{$tag}'][0]->{$method}({$_params}, null, \$_smarty_tpl, \$_block_repeat);while (\$_block_repeat) { ob_start();?>"; } else { - $base_tag = substr($tag, 0, -5); + $base_tag = substr($tag, 0, - 5); // must endblock be nocache? if ($compiler->nocache) { $compiler->tag_nocache = true; @@ -80,9 +80,7 @@ class Smarty_Internal_Compile_Private_Object_Block_Function extends Smarty_Inter } $output = "smarty->registered_objects['{$base_tag}'][0]->{$method}({$_params}, \$_block_content, \$_smarty_tpl, \$_block_repeat); " . $mod_post . " } array_pop(\$_smarty_tpl->smarty->_tag_stack);?>"; } + return $output . "\n"; } - } - -?> \ No newline at end of file