mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-35939 mod_quiz: use descriptive titles for pages
This commit is contained in:
parent
5641b98133
commit
eaa1d6aad7
@ -120,9 +120,8 @@ $navbc = $attemptobj->get_navigation_panel($output, 'quiz_attempt_nav_panel', $p
|
||||
$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);
|
||||
$PAGE->set_title($attemptobj->get_quiz_name());
|
||||
$PAGE->set_title($attemptobj->attempt_page_title($page));
|
||||
$PAGE->set_heading($attemptobj->get_course()->fullname);
|
||||
|
||||
if ($attemptobj->is_last_page($page)) {
|
||||
|
@ -106,7 +106,7 @@ if ($attemptobj->is_own_preview()) {
|
||||
|
||||
// Set up the page header.
|
||||
$headtags = $attemptobj->get_html_head_contributions($page, $showall);
|
||||
$PAGE->set_title($attemptobj->get_quiz_name());
|
||||
$PAGE->set_title($attemptobj->review_page_title($page, $showall));
|
||||
$PAGE->set_heading($attemptobj->get_course()->fullname);
|
||||
|
||||
// Summary table start. ============================================================================
|
||||
|
@ -87,7 +87,7 @@ $regions = $PAGE->blocks->get_regions();
|
||||
$PAGE->blocks->add_fake_block($navbc, reset($regions));
|
||||
|
||||
$PAGE->navbar->add(get_string('summaryofattempt', 'quiz'));
|
||||
$PAGE->set_title($attemptobj->get_quiz_name());
|
||||
$PAGE->set_title($attemptobj->summary_page_title());
|
||||
$PAGE->set_heading($attemptobj->get_course()->fullname);
|
||||
|
||||
// Display the page.
|
||||
|
Loading…
x
Reference in New Issue
Block a user