From: Nik Okuntseff Date: Sat, 27 Jan 2018 18:27:42 +0000 (+0000) Subject: Fixed monthly quotas to properly replace decimal delimiter. X-Git-Tag: timetracker_1.19-1~1321 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=77ee17dc3eaba0f878d95c6c73b52ed891c002fe;p=timetracker.git Fixed monthly quotas to properly replace decimal delimiter. --- diff --git a/WEB-INF/lib/ttTimeHelper.class.php b/WEB-INF/lib/ttTimeHelper.class.php index fdb5a3a9..f8eadf25 100644 --- a/WEB-INF/lib/ttTimeHelper.class.php +++ b/WEB-INF/lib/ttTimeHelper.class.php @@ -142,7 +142,7 @@ class ttTimeHelper { // Strip optional h in the end. $value = trim($value, 'h'); if ($user->decimal_mark == ',') - $value = str_replace($value, ',', '.'); + $value = str_replace(',', '.', $value); return (float) $value; } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index e6b8c40c..7000dc26 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.17.7.3798 | Copyright © Anuko | +  Anuko Time Tracker 1.17.8.3799 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}