Permalink
Browse files

MDL-29188 course_formats Fixed up formatting of section name within n…

…avigation
  • Loading branch information...
1 parent cdcb1b9 commit 113b970e62268c851b4e3b92f2d6c80c56d945ea Sam Hemelryk committed Sep 13, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 course/format/topics/lib.php
  2. +1 −1 course/format/weeks/lib.php
@@ -70,7 +70,7 @@ function callback_topics_request_key() {
function callback_topics_get_section_name($course, $section) {
// We can't add a node without any text
if (!empty($section->name)) {
- return $section->name;
+ return format_string($section->name, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)));
} else if ($section->section == 0) {
return get_string('section0name', 'format_topics');
} else {
@@ -78,7 +78,7 @@ function callback_weeks_get_section_name($course, $section) {
// We can't add a node without text
if (!empty($section->name)) {
// Return the name the user set
- return $section->name;
+ return format_string($section->name, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id)));
} else if ($section->section == 0) {
// Return the section0name
return get_string('section0name', 'format_weeks');

0 comments on commit 113b970

Please sign in to comment.