Permalink
Browse files

Prevent glossary etc from adding links to activity names that are

about to be turned into links (using <nolink> tags)
  • Loading branch information...
1 parent bb978ef commit b346b424d68f64fb0112ac730e979b0805052a02 moodler committed Mar 22, 2004
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
View
4 course/lib.php
@@ -823,7 +823,7 @@ function print_section_block($heading, $course, $section, $mods, $modnames, $mod
}
$instancename = urldecode($modinfo[$modnumber]->name);
if (!empty($CFG->filterall)) {
- $instancename = filter_text($instancename, $course->id);
+ $instancename = filter_text("<nolink>$instancename</nolink>", $course->id);
}
$linkcss = $mod->visible ? "" : " class=\"dimmed\" ";
if (!empty($modinfo[$modnumber]->extra)) {
@@ -915,7 +915,7 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
}
$instancename = urldecode($modinfo[$modnumber]->name);
if (!empty($CFG->filterall)) {
- $instancename = filter_text($instancename, $course->id);
+ $instancename = filter_text("<nolink>$instancename</nolink>", $course->id);
}
if (!empty($modinfo[$modnumber]->extra)) {

0 comments on commit b346b42

Please sign in to comment.