Commit 34b037de authored by Tim Hunt's avatar Tim Hunt Committed by Dan Poltawski
Browse files

MDL-32396 more quiz strict syntax problems.

parent b449d3b7
......@@ -244,7 +244,7 @@ $output = $PAGE->get_renderer('mod_quiz');
// Arrange for the navigation to be displayed.
$navbc = $attemptobj->get_navigation_panel($output, 'quiz_review_nav_panel', $page, $showall);
$firstregion = reset($PAGE->blocks->get_regions());
$PAGE->blocks->add_fake_block($navbc, $firstregion);
$regions = $PAGE->blocks->get_regions();
$PAGE->blocks->add_fake_block($navbc, reset($regions));
echo $output->review_page($attemptobj, $slots, $page, $showall, $lastpage, $options, $summarydata);
......@@ -80,8 +80,8 @@ if (empty($attemptobj->get_quiz()->showblocks)) {
}
$navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', -1);
$firstregion = reset($PAGE->blocks->get_regions());
$PAGE->blocks->add_fake_block($navbc, $firstregion);
$regions = $PAGE->blocks->get_regions();
$PAGE->blocks->add_fake_block($navbc, reset($regions));
$PAGE->navbar->add(get_string('summaryofattempt', 'quiz'));
$PAGE->set_title(format_string($attemptobj->get_quiz_name()));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment