Permalink
Browse files

Merge branch 'MDL-31516_grade_comma_decsep_moodle23' of git://github.…

…com/StudiUM/moodle into MOODLE_23_STABLE
  • Loading branch information...
2 parents 9ff506d + 35cf43c commit 9d1594b04bf9f6e7ac497cad07d0afd9888514c9 Sam Hemelryk committed Jul 23, 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 9d1594b

Please sign in to comment.