mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
fixed arg order of string_format
This commit is contained in:
2
NEWS
2
NEWS
@@ -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)
|
- use tmp file for file writes, avoid file lock race (Monte)
|
||||||
- handle embedded "$smarty.config.foo.tpl" correctly (Monte)
|
- handle embedded "$smarty.config.foo.tpl" correctly (Monte)
|
||||||
- add $smarty.config.varname variable for accessing config vars (Paul
|
- add $smarty.config.varname variable for accessing config vars (Paul
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
function smarty_modifier_string_format($string, $format)
|
function smarty_modifier_string_format($string, $format)
|
||||||
{
|
{
|
||||||
return sprintf($format, $string);
|
return sprintf($string, $format);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vim: set expandtab: */
|
/* vim: set expandtab: */
|
||||||
|
Reference in New Issue
Block a user