Skip to content

Commit

Permalink
Merged branch 'MDL-28491' of git://github.com/timhunt/moodle.git with…
Browse files Browse the repository at this point in the history
… conflict resolution
  • Loading branch information
Sam Hemelryk committed Oct 18, 2011
2 parents 065d6d8 + 1b796a2 commit f856216
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mod/quiz/summary.php
Expand Up @@ -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.