diff --git a/backup/backup.php b/backup/backup.php index 7d3170d9684..53e037e36f3 100644 --- a/backup/backup.php +++ b/backup/backup.php @@ -60,10 +60,12 @@ switch ($type) { $heading = get_string('backupcourse', 'backup', $course->shortname); break; case backup::TYPE_1SECTION : - require_capability('moodle/backup:backupsection', get_context_instance(CONTEXT_COURSE, $course->id)); + $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id); + require_capability('moodle/backup:backupsection', $coursecontext); if (!empty($section->name)) { - $heading = get_string('backupsection', 'backup', $section->name); - $PAGE->navbar->add($section->name); + $sectionname = format_string($section->name, true, array('context' => $coursecontext)); + $heading = get_string('backupsection', 'backup', $sectionname); + $PAGE->navbar->add($sectionname); } else { $heading = get_string('backupsection', 'backup', $section->section); $PAGE->navbar->add(get_string('section').' '.$section->section); diff --git a/course/format/topics/format.php b/course/format/topics/format.php index d4a5f4ecca2..fe8fb3e1135 100644 --- a/course/format/topics/format.php +++ b/course/format/topics/format.php @@ -96,7 +96,7 @@ if ($thissection->summary or $thissection->sequence or $PAGE->user_is_editing()) echo '