Bug with modifiers like {$foo|@count}

0 views
Skip to first unread message

Romain

unread,
Nov 21, 2009, 1:18:44 PM11/21/09
to Smarty Developers
Hi everyone,

I have just found a bug in the lastest release of Smarty (3 beta4) :

If I write in my template a line like this :
{$foo|@count}

I have the expected result but before my template it's displayed :
array(1) { [1]=> string(122) "$_smarty_tpl->smarty->plugin_handler-
>executeModifier('count',array($_smarty_tpl->getVariable('foo')-
>value),false)" }

It only happens on the first Smarty refresh, when smarty compiles the
Smarty syntax code to php code.

A var_dump that a developer forgot to remove ? :-)

Great job for this new smarty version !

Romain

Uwe.Tews

unread,
Nov 23, 2009, 12:31:25 PM11/23/09
to Smarty Developers
Yes, I forgot to reemove a var_dump.

It's fixed in beta5.
Reply all
Reply to author
Forward
0 new messages