Skip to content

Commit

Permalink
MDL-31516 Fixing grade_edit_tree::format_number
Browse files Browse the repository at this point in the history
  • Loading branch information
gaudreaj authored and Sam Hemelryk committed Jul 23, 2012
1 parent fc99430 commit dacd5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/edit/tree/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dacd5da

Please sign in to comment.