MDL-80131 mod_data: Make page titles unique

This commit is contained in:
Jun Pataleta
2023-12-02 07:20:45 +08:00
parent caacef2ea2
commit 933261722b
11 changed files with 122 additions and 34 deletions
+8 -2
View File
@@ -113,13 +113,19 @@ if ($mform->is_cancelled()) {
// Build header to match the rest of the UI.
$PAGE->add_body_class('mediumwidth');
$PAGE->set_title($data->name);
$pagename = get_string('exportentries', 'data');
$titleparts = [
$pagename,
format_string($data->name),
format_string($course->fullname),
];
$PAGE->set_title(implode(moodle_page::TITLE_SEPARATOR, $titleparts));
$PAGE->set_heading($course->fullname);
$PAGE->force_settings_menu(true);
$PAGE->set_secondary_active_tab('modulepage');
$PAGE->activityheader->disable();
echo $OUTPUT->header();
echo $OUTPUT->heading(get_string('exportentries', 'data'));
echo $OUTPUT->heading($pagename);
groups_print_activity_menu($cm, $url);