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 20... Zeile 20...
20
 * @return string with compiled code
20
 * @return string with compiled code
21
 */
21
 */
22
function smarty_modifiercompiler_lower($params)
22
function smarty_modifiercompiler_lower($params)
23
{
23
{
24
    if (Smarty::$_MBSTRING) {
24
    if (Smarty::$_MBSTRING) {
25
        return 'mb_strtolower(' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')';
25
        return 'mb_strtolower((string) ' . $params[ 0 ] . ', \'' . addslashes(Smarty::$_CHARSET) . '\')';
26
    }
26
    }
27
    // no MBString fallback
27
    // no MBString fallback
28
    return 'strtolower(' . $params[ 0 ] . ')';
28
    return 'strtolower((string) ' . $params[ 0 ] . ')';
29
}
29
}