- bugfix on some compiling modifiers

This commit is contained in:
uwe.tews@googlemail.com
2010-09-25 13:31:57 +00:00
parent 802d40f3d3
commit dde2219004
5 changed files with 8 additions and 5 deletions

View File

@@ -21,7 +21,7 @@
function smarty_modifiercompiler_upper($params, $compiler)
{
if (function_exists('mb_strtoupper')) {
return '(mb_detect_encoding(' . $params[0] . ', \'UTF-8, ISO-8859-1\') === \'UTF-8\') ? mb_strtoupper(' . $params[0] . ',SMARTY_RESOURCE_CHAR_SET) : strtoupper(' . $params[0] . ')' ;
return '((mb_detect_encoding(' . $params[0] . ', \'UTF-8, ISO-8859-1\') === \'UTF-8\') ? mb_strtoupper(' . $params[0] . ',SMARTY_RESOURCE_CHAR_SET) : strtoupper(' . $params[0] . '))' ;
} else {
return 'strtoupper(' . $params[0] . ')';
}