Merge branch 'MDL-46852-master' of git://github.com/FMCorz/moodle

This commit is contained in:
Damyon Wiese
2014-09-01 16:16:08 +08:00
+2 -1
View File
@@ -77,7 +77,8 @@ class lesson_page_type_shortanswer extends lesson_page {
$answers = $this->get_answers();
foreach ($answers as $answer) {
$i++;
$expectedanswer = $answer->answer; // for easier handling of $answer->answer
// Applying PARAM_TEXT as it is applied to the answer submitted by the user.
$expectedanswer = clean_param($answer->answer, PARAM_TEXT);
$ismatch = false;
$markit = false;
$useregexp = ($this->qoption);