mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-37679-master' of git://github.com/phalacee/moodle
This commit is contained in:
commit
2280ad064d
2 changed files with 11 additions and 1 deletions
|
@ -239,7 +239,15 @@
|
|||
$PAGE->set_button($buttons);
|
||||
}
|
||||
|
||||
$PAGE->set_title(get_string('course') . ': ' . $course->fullname);
|
||||
// If viewing a section, make the title more specific
|
||||
if ($section and $section > 0 and course_format_uses_sections($course->format)) {
|
||||
$sectionname = get_string('sectionname', "format_$course->format");
|
||||
$sectiontitle = get_section_name($course, $section);
|
||||
$PAGE->set_title(get_string('coursesectiontitle', 'moodle', array('course' => $course->fullname, 'sectiontitle' => $sectiontitle, 'sectionname' => $sectionname)));
|
||||
} else {
|
||||
$PAGE->set_title(get_string('coursetitle', 'moodle', array('course' => $course->fullname)));
|
||||
}
|
||||
|
||||
$PAGE->set_heading($course->fullname);
|
||||
echo $OUTPUT->header();
|
||||
|
||||
|
|
|
@ -372,12 +372,14 @@ $string['courserequestsupport'] = 'Supporting information to help the administra
|
|||
$string['courserestore'] = 'Course restore';
|
||||
$string['courses'] = 'Courses';
|
||||
$string['coursesectionsummaries'] = 'Course section summaries';
|
||||
$string['coursesectiontitle'] = 'Course: {$a->course}, {$a->sectionname}: {$a->sectiontitle}';
|
||||
$string['coursesettings'] = 'Course default settings';
|
||||
$string['coursesmovedout'] = 'Courses moved out from {$a}';
|
||||
$string['coursespending'] = 'Courses pending approval';
|
||||
$string['coursestart'] = 'Course start';
|
||||
$string['coursesummary'] = 'Course summary';
|
||||
$string['coursesummary_help'] = 'The course summary is displayed in the list of courses. A course search searches course summary text in addition to course names.';
|
||||
$string['coursetitle'] = 'Course: {$a->course}';
|
||||
$string['courseupdates'] = 'Course updates';
|
||||
$string['create'] = 'Create';
|
||||
$string['createaccount'] = 'Create my new account';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue