From 67a735a143bf8f836d0aeb14fdb44199414f6dd7 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 08 Feb 2011 09:00:46 -0500
Subject: [PATCH] Moved number formatting information (number_format_* settings) from $conf array to the language files.
---
interface/lib/classes/tform.inc.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/interface/lib/classes/tform.inc.php b/interface/lib/classes/tform.inc.php
index a164e83..487f3da 100644
--- a/interface/lib/classes/tform.inc.php
+++ b/interface/lib/classes/tform.inc.php
@@ -163,7 +163,7 @@
* @return record
*/
function decode($record,$tab) {
- global $conf;
+ global $conf, $app;
if(!is_array($this->formDef['tabs'][$tab])) $app->error("Tab does not exist or the tab is empty (TAB: $tab).");
$new_record = '';
if(is_array($record)) {
@@ -199,7 +199,7 @@
break;
case 'CURRENCY':
- $new_record[$key] = number_format((double)$record[$key], $conf['number_format_decimals'], $conf['number_format_dec_point'], $conf['number_format_thousands_sep']);
+ $new_record[$key] = number_format((double)$record[$key], (int)$app->lng('number_format_decimals'), $app->lng('number_format_dec_point'), $app->lng('number_format_thousands_sep'));
break;
default:
--
Gitblit v1.9.1