MDL-80131 mod_data: Make page titles unique
This commit is contained in:
+8
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user