Skip to content
Browse files

Merged branch 'MDL-28491' of git://github.com/timhunt/moodle.git with…

… conflict resolution
  • Loading branch information...
2 parents 065d6d8 + 1b796a2 commit f856216cb1b2699c18c654ed692afc14aae4c2bd Sam Hemelryk committed Oct 18, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 mod/quiz/summary.php
View
8 mod/quiz/summary.php
@@ -74,17 +74,21 @@
'summary.php?attempt=' . $attemptobj->get_attemptid(),
$attemptobj->get_quizid(), $attemptobj->get_cmid());
-// Print the page header
+// Arrange for the navigation to be displayed.
if (empty($attemptobj->get_quiz()->showblocks)) {
$PAGE->blocks->show_only_fake_blocks();
}
+$navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', $page);
+$firstregion = reset($PAGE->blocks->get_regions());
+$PAGE->blocks->add_fake_block($navbc, $firstregion);
+
$PAGE->navbar->add(get_string('summaryofattempt', 'quiz'));
$PAGE->set_title(format_string($attemptobj->get_quiz_name()));
$PAGE->set_heading($attemptobj->get_course()->fullname);
$accessmanager->setup_attempt_page($PAGE);
-// Print heading.
+// Display the page.
$accessmanager->show_attempt_timer_if_needed($attemptobj->get_attempt(), time(), $output);
echo $output->summary_page($attemptobj, $displayoptions);

0 comments on commit f856216

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