Skip to content
Browse files

MDL-38055 navigation: fixed ampersand use within titles

  • Loading branch information...
1 parent 215c189 commit 45dbcbec5fc59fc050ef55503ec8a460b2d027a1 Sam Hemelryk committed Feb 18, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/navigationlib.php
View
3 lib/navigationlib.php
@@ -2545,7 +2545,8 @@ public function add_course(stdClass $course, $forcegeneric = false, $ismycourse
$coursenode = $parent->add($shortname, $url, self::TYPE_COURSE, $shortname, $course->id);
$coursenode->nodetype = self::NODETYPE_BRANCH;
$coursenode->hidden = (!$course->visible);
- $coursenode->title(format_string($course->fullname, true, array('context' => get_context_instance(CONTEXT_COURSE, $course->id))));
+ $fullname = format_string($course->fullname, true, array('context' => context_course::instance($course->id)));
+ $coursenode->title(str_replace('&', '&', $fullname));
if (!$forcegeneric) {
$this->addedcourses[$course->id] = $coursenode;
}

0 comments on commit 45dbcbe

Please sign in to comment.
Something went wrong with that request. Please try again.