Re: [SMARTY-DEV] bug in modifier.string_format.php
| From: | Monte Ohrt | Date: | Wed, 05 Mar 2003 23:52:48 +0000 |
| Subject: | Re: [SMARTY-DEV] bug in modifier.string_format.php | ||
| References: | 1 2 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-891@lists.php.net to get a copy of this message | ||
Doh! This was RIGHT in the first place! The PHP manual has it right, but
is confusing at first glance. I'll change this back in CVS.
Monte
On Mon, 2003-02-24 at 09:28, Monte Ohrt wrote:
> fix committed... not many people use it I guess?
>
> Monte
>
> On Sat, 2003-02-22 at 15:42, Paul Lockaby wrote:
> > The arguments to sprintf are reversed. It reads:
> >
> > function smarty_modifier_string_format($string, $format)
> > {
> > return sprintf($format, $string);
> > }
> >
> > But should read:
> >
> > function smarty_modifier_string_format($string, $format)
> > {
> > return sprintf($string, $format);
> > }
> >
> > ~Paul
> --
> Monte Ohrt <monte@ispi.net>
--
Monte Ohrt <monte@ispi.net>