X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=291d865adba1237ce19a8942adc57650db4055a7;hp=e9eb6681020ff46b822479f1b51822ea084c3321;hb=aaeab8d02fbf455df9b60ab0b85c999dd2da9069;hpb=427719103e37ed2e27803b833dc5db5841e4dec9 diff --git a/inc/functions.php b/inc/functions.php index e9eb668102..291d865adb 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -569,13 +569,18 @@ function MAKE_DATETIME ($time, $mode="0") } // Translates the american decimal dot into a german comma -function TRANSLATE_COMMA ($dotted, $cut=true) { +function TRANSLATE_COMMA ($dotted, $cut=true, $max=0) { global $_CONFIG; // Default is 3 you can change this in admin area "Misc -> Misc Options" if (empty($_CONFIG['max_comma'])) $_CONFIG['max_comma'] = "3"; + + // Use from config is default $maxComma = $_CONFIG['max_comma']; + // Use from parameter? + if ($max > 0) $maxComma = $max; + // Cut zeros off? if ($cut) { // Test for commata if in cut-mode