X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=library%2FSmarty%2Flibs%2Fsysplugins%2Fsmarty_internal_compile_eval.php;h=407482f07a229cd9eb0bea5eee2cb1c32744534d;hb=0e1f8f64865af99adde865bf931c3078b9841afd;hp=6cf481b505fa9f80be4bb5ad54f2b8f283a268f7;hpb=bfca7f47ef1f986ea8515d23c3c1962c7fe3a298;p=friendica.git diff --git a/library/Smarty/libs/sysplugins/smarty_internal_compile_eval.php b/library/Smarty/libs/sysplugins/smarty_internal_compile_eval.php index 6cf481b505..407482f07a 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_compile_eval.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_compile_eval.php @@ -1,22 +1,21 @@ getAttributes($compiler, $args); if (isset($_attr['assign'])) { - // output will be stored in a smarty variable instead of beind displayed + // output will be stored in a smarty variable instead of being displayed $_assign = $_attr['assign']; } // create template object - $_output = "\$_template = new {$compiler->smarty->template_class}('eval:'.".$_attr['var'].", \$_smarty_tpl->smarty, \$_smarty_tpl);"; + $_output = "\$_template = new {$compiler->smarty->template_class}('eval:'." . $_attr['var'] . ", \$_smarty_tpl->smarty, \$_smarty_tpl);"; //was there an assign attribute? if (isset($_assign)) { $_output .= "\$_smarty_tpl->assign($_assign,\$_template->fetch());"; } else { $_output .= "echo \$_template->fetch();"; } + return ""; } - } - -?> \ No newline at end of file