MDL-32396 more quiz strict syntax problems.

This commit is contained in:
Tim Hunt 2012-04-18 08:55:12 +01:00 committed by Dan Poltawski
parent b449d3b7a2
commit 34b037dec6
2 changed files with 4 additions and 4 deletions

View file

@ -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()));