mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-32396' of git://github.com/timhunt/moodle
This commit is contained in:
commit
ef4965afe4
@ -109,10 +109,10 @@ if ($attemptobj->get_currentpage() != $page) {
|
||||
$headtags = $attemptobj->get_html_head_contributions($page);
|
||||
$PAGE->requires->js_init_call('M.mod_quiz.init_attempt_form', null, false, quiz_get_js_module());
|
||||
|
||||
// Arrange for the navigation to be displayed.
|
||||
// Arrange for the navigation to be displayed in the first region on the page.
|
||||
$navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', $page);
|
||||
$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));
|
||||
|
||||
$title = get_string('attempt', 'quiz', $attemptobj->get_attempt_number());
|
||||
$headtags = $attemptobj->get_html_head_contributions($page);
|
||||
|
Loading…
x
Reference in New Issue
Block a user