"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mod/quiz/attempt.php" between
moodle-3.6.5.tgz and moodle-3.6.6.tgz

About: moodle is a learning management system for producing Internet-based course Web sites. Latest 3.6 release.

attempt.php  (moodle-3.6.5.tgz):attempt.php  (moodle-3.6.6.tgz)
skipping to change at line 123 skipping to change at line 123
// Initialise the JavaScript. // Initialise the JavaScript.
$headtags = $attemptobj->get_html_head_contributions($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()); $PAGE->requires->js_init_call('M.mod_quiz.init_attempt_form', null, false, quiz_ get_js_module());
// Arrange for the navigation to be displayed in the first region on the page. // Arrange for the navigation to be displayed in the first region on the page.
$navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', $p age); $navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', $p age);
$regions = $PAGE->blocks->get_regions(); $regions = $PAGE->blocks->get_regions();
$PAGE->blocks->add_fake_block($navbc, reset($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); $headtags = $attemptobj->get_html_head_contributions($page);
$PAGE->set_title($attemptobj->get_quiz_name()); $PAGE->set_title($attemptobj->attempt_page_title($page));
$PAGE->set_heading($attemptobj->get_course()->fullname); $PAGE->set_heading($attemptobj->get_course()->fullname);
if ($attemptobj->is_last_page($page)) { if ($attemptobj->is_last_page($page)) {
$nextpage = -1; $nextpage = -1;
} else { } else {
$nextpage = $page + 1; $nextpage = $page + 1;
} }
echo $output->attempt_page($attemptobj, $page, $accessmanager, $messages, $slots , $id, $nextpage); echo $output->attempt_page($attemptobj, $page, $accessmanager, $messages, $slots , $id, $nextpage);
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)