mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
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:
parent
defb0f64f0
commit
48f1234896
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue