forked from halo-battle/game
Update Smarty to v2.6.31 (fix compatibility with PHP 7.2)
This commit is contained in:
parent
aebcb5b82b
commit
f88f9499d0
400 changed files with 3366 additions and 49622 deletions
|
|
@ -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: */
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue