Skip to content
Browse files

MDL-30209 quiz refers to wrong rendere method in two places.

Thanks to Dan Marsden for working out the fix.
  • Loading branch information...
1 parent e25ecdf commit bf850b4b18bc581a2dd0134047f751238ebf730d @timhunt timhunt committed
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/quiz/startattempt.php
  2. +1 −1 mod/quiz/summary.php
View
2 mod/quiz/startattempt.php
@@ -102,7 +102,7 @@
if (!$quizobj->is_preview_user() && $messages) {
$output = $PAGE->get_renderer('mod_quiz');
print_error('attempterror', 'quiz', $quizobj->view_url(),
- $output->print_messages($messages));
+ $output->access_messages($messages));
}
$accessmanager->do_password_check($quizobj->is_preview_user());
View
2 mod/quiz/summary.php
@@ -61,7 +61,7 @@
$output = $PAGE->get_renderer('mod_quiz');
if (!$attemptobj->is_preview_user() && $messages) {
print_error('attempterror', 'quiz', $attemptobj->view_url(),
- $output->print_messages($messages));
+ $output->access_messages($messages));
}
$accessmanager->do_password_check($attemptobj->is_preview_user());

0 comments on commit bf850b4

Please sign in to comment.
Something went wrong with that request. Please try again.