fixed arg order of string_format

This commit is contained in:
mohrt
2003-02-24 15:28:15 +00:00
parent f5f21995ef
commit ea0e560e90
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -1,3 +1,5 @@
- fixed string_format modifier args (wrong order) (Paul
Lockaby, Monte)
- use tmp file for file writes, avoid file lock race (Monte)
- handle embedded "$smarty.config.foo.tpl" correctly (Monte)
- add $smarty.config.varname variable for accessing config vars (Paul

View File

@@ -10,7 +10,7 @@
*/
function smarty_modifier_string_format($string, $format)
{
return sprintf($format, $string);
return sprintf($string, $format);
}
/* vim: set expandtab: */