Skip to content

Commit

Permalink
MDL-32396 more quiz strict syntax problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt authored and danpoltawski committed Apr 18, 2012
1 parent b449d3b commit 34b037d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/review.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@

// 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);
4 changes: 2 additions & 2 deletions mod/quiz/summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
}

$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()));
Expand Down

0 comments on commit 34b037d

Please sign in to comment.