mirror of
https://github.com/moodle/moodle.git
synced 2025-03-08 17:59:55 +01:00
Fixed some typos as per bug 1717
This commit is contained in:
parent
a839f36977
commit
2c6d8d1d60
@ -333,7 +333,7 @@ class quiz_file_format extends quiz_default_format {
|
||||
$answer = trim($answer);
|
||||
|
||||
// Answer Weight
|
||||
if (ereg(GIFT_ANSWERWEIGHT_REGEX, $answer)) { // check for properly formatted answer weight
|
||||
if (ereg($gift_answerweight_regex, $answer)) { // check for properly formatted answer weight
|
||||
$answer_weight = $this->answerweightparser($answer);
|
||||
} else { //default, i.e., full-credit anwer
|
||||
$answer_weight = 1;
|
||||
@ -374,7 +374,7 @@ class quiz_file_format extends quiz_default_format {
|
||||
$answer = trim($answer);
|
||||
|
||||
// Answer weight
|
||||
if (ereg(GIFT_ANSWERWEIGHT_REGEX, $answer)) { // check for properly formatted answer weight
|
||||
if (ereg($gift_answerweight_regex, $answer)) { // check for properly formatted answer weight
|
||||
$answer_weight = $this->answerweightparser($answer);
|
||||
} else { //default, i.e., full-credit anwer
|
||||
$answer_weight = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user