Merge from 1.9 as HEAD is different

MDL-16427 implement the '*' convention as for other questiontypes
MDL-15358 negative data and MDL-16427 handling 0
MDL-15233 tolerance
This commit is contained in:
pichetp 2008-09-21 03:15:40 +00:00
parent defb0f64f0
commit 48f1234896

View file

@ -86,14 +86,14 @@ class question_dataset_dependent_questiontype extends default_questiontype {
if($value < 0 ){ if($value < 0 ){
$str = str_replace('{'.$name.'}', '('.$value.')', $str); $str = str_replace('{'.$name.'}', '('.$value.')', $str);
} else { } else {
$str = str_replace('{'.$name.'}', $value, $str); $str = str_replace('{'.$name.'}', $value, $str);
} }
} }
return $str; return $str;
} }
function finished_edit_wizard(&$form) { function finished_edit_wizard(&$form) {
return isset($form->backtoquiz); return isset($form->backtoquiz);
} }