Permalink
Browse files

MDL-31516 Fixing grade_edit_tree::format_number

  • Loading branch information...
1 parent 3b52187 commit 35cf43cb421821f9ff7ca98a073e5c19ace36ddd @gaudreaj gaudreaj committed Jul 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 grade/edit/tree/lib.php
View
@@ -389,7 +389,7 @@ static function get_weight_input($item, $type) {
//Grader report has its own decimal place settings so they are handled elsewhere
static function format_number($number) {
$formatted = rtrim(format_float($number, 4),'0');
- if (substr($formatted, -1)=='.') { //if last char is the decimal point
+ if (substr($formatted, -1)==get_string('decsep', 'langconfig')) { //if last char is the decimal point
$formatted .= '0';
}
return $formatted;

0 comments on commit 35cf43c

Please sign in to comment.