Update Smarty to v2.6.31 (fix compatibility with PHP 7.2)

This commit is contained in:
nemunaire 2020-11-15 17:12:18 +01:00
commit f88f9499d0
400 changed files with 3366 additions and 49622 deletions

View file

@ -7,22 +7,23 @@
/**
* Smarty separe number modifier plugin
* Smarty plugin
*
* Type: modifier<br>
* Name: separenombre<br>
* Date: Aug 22, 2008
* Purpose: separe number
* Example: {$int|separenombre}
*
* Example: {$text|separenombre}
* @version 1.0
* @author Nemunaire <nemunaire at gmail dot com>
* @param float $
* @param string
* @return string
*/
function smarty_modifier_separerNombres($int)
function smarty_modifier_separerNombres($string)
{
return number_format(floor($int), 0, ',', ' ');
return number_format(floor($string), 0, ',', ' ');
}
?>
/* vim: set expandtab: */
?>