Skip to content

Commit

Permalink
Fix server-add for German and other locales that use comma as decimal…
Browse files Browse the repository at this point in the history
… separator.
  • Loading branch information
andyst committed Feb 22, 2010
1 parent 6ce0132 commit f7b39e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/server_add/controllers/server_add.php
Expand Up @@ -109,9 +109,11 @@ function run($task_id) {
}

$task = task::run($task_id);
// Prevent the JavaScript code from breaking by forcing a period as
// decimal separator for all locales with sprintf("%F", $value).
print json_encode(array("done" => (bool)$task->done,
"status" => $task->status,
"percent_complete" => $task->percent_complete));
"percent_complete" => sprintf("%F", $task->percent_complete)));
}

/**
Expand Down

0 comments on commit f7b39e7

Please sign in to comment.