diff --git a/NEWS b/NEWS index 9fa5c744..2b065e93 100644 --- a/NEWS +++ b/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) - handle embedded "$smarty.config.foo.tpl" correctly (Monte) - add $smarty.config.varname variable for accessing config vars (Paul diff --git a/libs/plugins/modifier.string_format.php b/libs/plugins/modifier.string_format.php index 3cb55da7..59b75edb 100644 --- a/libs/plugins/modifier.string_format.php +++ b/libs/plugins/modifier.string_format.php @@ -10,7 +10,7 @@ */ function smarty_modifier_string_format($string, $format) { - return sprintf($format, $string); + return sprintf($string, $format); } /* vim: set expandtab: */