From c691f2f5134dbba2b23e472f1d5a5d7befa79aa1 Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Wed, 11 Apr 2012 10:17:10 +0100 Subject: [PATCH] MDL-32396 quiz: Strict syntax notice on the quiz attempt page. --- mod/quiz/attempt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/quiz/attempt.php b/mod/quiz/attempt.php index ea9c5341c83..87effe92b62 100644 --- a/mod/quiz/attempt.php +++ b/mod/quiz/attempt.php @@ -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);