Skip to content
Browse files

MDL-38055 navigation: fixed ampersand use within titles

Conflicts:
	lib/navigationlib.php
  • Loading branch information...
1 parent 19075a2 commit 498ee7d44b850e373db6e317d12bf55aef29586d @samhemelryk samhemelryk committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/navigationlib.php
View
3 lib/navigationlib.php
@@ -2378,7 +2378,8 @@ public function add_course(stdClass $course, $forcegeneric = false, $coursetype
$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' => context_course::instance($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 498ee7d

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