MDL-80541 core_course: Improving section form title

This commit is contained in:
Amaia Anabitarte
2024-02-05 10:25:52 +01:00
parent 3fc907e3d8
commit 3e2da7f6f7
3 changed files with 8 additions and 5 deletions
+4 -4
View File
@@ -148,11 +148,11 @@ if ($mform->is_cancelled()){
}
// The edit form is displayed for the first time or if there was validation error on the previous step.
$sectionname = get_section_name($course, $sectionnum);
$stredit = get_string('edita', '', " $sectionname");
$strsummaryof = get_string('summaryof', '', " $sectionname");
$sectionname = get_section_name($course, $sectionnum);
$stredit = get_string('editsectiontitle', '', $sectionname);
$strsummaryof = get_string('editsectionsettings');
$PAGE->set_title($stredit);
$PAGE->set_title($stredit . moodle_page::TITLE_SEPARATOR . $course->shortname);
$PAGE->set_heading($course->fullname);
$PAGE->navbar->add($stredit);
echo $OUTPUT->header();