Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'MDL-37679-24' of git://github.com/phalacee/moodle into …

…MOODLE_24_STABLE
  • Loading branch information...
commit 003638cb8d9e19b1bf17859f751a49d3dafe35c3 2 parents 6af74e1 + c30533c
@marinaglancy marinaglancy authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 course/view.php
View
8 course/view.php
@@ -239,6 +239,14 @@
}
$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)) {
+ // Get section details and check it exists.
+ $newtitle = $PAGE->title.', '.get_string('sectionname', "format_$course->format").': '.
+ get_section_name($course, $section);
+ $PAGE->set_title($newtitle);
+ }
+
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
Please sign in to comment.
Something went wrong with that request. Please try again.