mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-32396 more quiz strict syntax problems.
This commit is contained in:
parent
b449d3b7a2
commit
34b037dec6
2 changed files with 4 additions and 4 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue