Code

Updated smarty image function
[gosa.git] / gosa-core / include / smarty / plugins / modifier.upper.php
1 <?php
2 /**
3 * Smarty plugin
4
5 * @package Smarty
6 * @subpackage PluginsModifier
7 */
9 /**
10 * Smarty upper modifier plugin
11
12 * Type:     modifier<br>
13 * Name:     upper<br>
14 * Purpose:  convert string to uppercase
15
16 * @link http://smarty.php.net/manual/en/language.modifier.upper.php upper (Smarty online manual)
17 * @author Monte Ohrt <monte at ohrt dot com> 
18 * @param string $ 
19 * @return string 
20 */
21 function smarty_modifier_upper($string)
22 {
23     if (function_exists('mb_strtoupper')) {
24         return mb_strtoupper($string);
25     } else {
26         return strtoupper($string);
27     } 
28
30 ?>