This repository has been archived on 2025-06-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
server/onyx/modules/templates/smarty/plugins/modifier.nom.php
2013-10-09 15:40:23 +02:00

30 lines
No EOL
477 B
PHP

<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty plugin
*
* Type: modifier<br>
* Name: separenombre<br>
* Date: Aug 22, 2008
* Purpose: separe number
* Example: {$text|separenombre}
* @version 1.0
* @author Nemunaire <nemunaire at gmail dot com>
* @param string
* @return string
*/
function smarty_modifier_nom($string, $type)
{
global ${$type};
return ${$type}[$string];
}
/* vim: set expandtab: */
?>