Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
moodle
moodle
Commits
ef4965af
Commit
ef4965af
authored
Apr 16, 2012
by
Dan Poltawski
Browse files
Merge branch 'MDL-32396' of
git://github.com/timhunt/moodle
parents
71504afc
c691f2f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
mod/quiz/attempt.php
View file @
ef4965af
...
...
@@ -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
);
$
first
region
=
reset
(
$PAGE
->
blocks
->
get_regions
()
)
;
$PAGE
->
blocks
->
add_fake_block
(
$navbc
,
$first
region
);
$region
s
=
$PAGE
->
blocks
->
get_regions
();
$PAGE
->
blocks
->
add_fake_block
(
$navbc
,
reset
(
$
region
s
)
);
$title
=
get_string
(
'attempt'
,
'quiz'
,
$attemptobj
->
get_attempt_number
());
$headtags
=
$attemptobj
->
get_html_head_contributions
(
$page
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment