Skip to content

Commit

Permalink
MDL-29188 course_formats Fixed up formatting of section name within n…
Browse files Browse the repository at this point in the history
…avigation
  • Loading branch information
Sam Hemelryk committed Sep 13, 2011
1 parent 6aa9352 commit 9e312ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion course/format/topics/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion course/format/weeks/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 9e312ed

Please sign in to comment.