diff --git a/mod/lesson/format.php b/mod/lesson/format.php index f0fe6b27ad1..2b6c54c12c8 100644 --- a/mod/lesson/format.php +++ b/mod/lesson/format.php @@ -222,7 +222,7 @@ function lesson_save_question_options($question, $lesson) { $totalfraction = round($totalfraction,2); if ($totalfraction != 1) { $totalfraction = $totalfraction * 100; - $result->notice = get_string("fractionsaddwrong", "quiz", $totalfraction); + $result->notice = get_string("fractionsaddwrong", "qtype_multichoice", $totalfraction); return $result; } } diff --git a/question/format/webct/format.php b/question/format/webct/format.php index fd6c411b736..dbe7c734d56 100644 --- a/question/format/webct/format.php +++ b/question/format/webct/format.php @@ -517,8 +517,8 @@ class qformat_webct extends qformat_default { $totalfraction = round($totalfraction, 2); if ($totalfraction != 1) { $totalfraction = $totalfraction * 100; - $errors[] = "'$question->name': ".get_string('wronggrade', 'qformat_webct', $nlinecounter) - .' '.get_string('fractionsaddwrong', 'question', $totalfraction); + $errors[] = "'{$question->name}': ".get_string('wronggrade', 'qformat_webct', $nlinecounter) + .' '.get_string('fractionsaddwrong', 'qtype_multichoice', $totalfraction); $questionok = false; } }