Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 19... Zeile 19...
19
 * @return string with compiled code
19
 * @return string with compiled code
20
 */
20
 */
21
function smarty_modifiercompiler_upper($params)
21
function smarty_modifiercompiler_upper($params)
22
{
22
{
23
    if (Smarty::$_MBSTRING) {
23
    if (Smarty::$_MBSTRING) {
24
        return 'mb_strtoupper(' . $params[ 0 ] . ' ?? \'\', \'' . addslashes(Smarty::$_CHARSET) . '\')';
24
        return 'mb_strtoupper((string) ' . $params[ 0 ] . ' ?? \'\', \'' . addslashes(Smarty::$_CHARSET) . '\')';
25
    }
25
    }
26
    // no MBString fallback
26
    // no MBString fallback
27
    return 'strtoupper(' . $params[ 0 ] . ' ?? \'\')';
27
    return 'strtoupper((string) ' . $params[ 0 ] . ' ?? \'\')';
28
}
28
}