Permalink
Browse files

MDL-38055 navigation: fixed ampersand use within titles

  • Loading branch information...
1 parent cce0d9a commit 4e83302f6f6b95504cc33e7a75e3694750b5621e Sam Hemelryk committed Feb 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/navigationlib.php
@@ -2349,7 +2349,7 @@ public function add_course(stdClass $course, $forcegeneric = false, $coursetype
$coursenode = $parent->add($coursename, $url, self::TYPE_COURSE, $shortname, $course->id);
$coursenode->nodetype = self::NODETYPE_BRANCH;
$coursenode->hidden = (!$course->visible);
- $coursenode->title($fullname);
+ $coursenode->title(str_replace('&', '&', $fullname));
if (!$forcegeneric) {
$this->addedcourses[$course->id] = $coursenode;
}

0 comments on commit 4e83302

Please sign in to comment.