Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1371 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1371 Revision 1375
Zeile 17... Zeile 17...
17
    */
17
    */
18
    function smarty_modifier_money_format_red( $string, $places = 2, $locale = "de_DE", $onlySymbol = false, $incSymbol = true, $shortSymbol = false )
18
    function smarty_modifier_money_format_red( $string, $places = 2, $locale = "de_DE", $onlySymbol = false, $incSymbol = true, $shortSymbol = false )
19
    {
19
    {
20
        if ( !$locale )
20
        if ( !$locale )
21
        {
21
        {
22
            $locale = "de_DE";
-
 
23
        }
-
 
24
        if ( $_SESSION["charset"] == "utf8" && !str_ends_with( strtoupper( $locale ), ".UTF-8" ) )
-
 
25
        {
-
 
26
            $locale .= ".UTF-8";
22
            $locale = "de_DE.UTF-8";
27
        }
23
        }
Zeile 28... Zeile 24...
28
 
24
 
29
        $fmt = new NumberFormatter( $locale, NumberFormatter::CURRENCY );
25
        $fmt = new NumberFormatter( $locale, NumberFormatter::CURRENCY );
30
        if ( $incSymbol === false )
26
        if ( $incSymbol === false )