Skip to content

Commit

Permalink
Now the "jump to" menu (navmenu) supports filterall.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 26, 2005
1 parent d4880ea commit 9870dbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/weblib.php
Expand Up @@ -3121,7 +3121,7 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
$thissection = $sections[$mod->section];

if ($thissection->visible or !$course->hiddensections or $isteacher) {
$thissection->summary = strip_tags($thissection->summary);
$thissection->summary = strip_tags(format_string($thissection->summary,true));
if ($course->format == 'weeks' or empty($thissection->summary)) {
$menu[] = '-------------- '. $strsection ." ". $mod->section .' --------------';
} else {
Expand Down Expand Up @@ -3151,7 +3151,7 @@ function navmenu($course, $cm=NULL, $targetwindow='self') {
$mod->name = $strjumpto;
$strjumpto = '';
} else {
$mod->name = strip_tags(urldecode($mod->name));
$mod->name = strip_tags(format_string(urldecode($mod->name),true));
if (strlen($mod->name) > 55) {
$mod->name = substr($mod->name, 0, 50).'...';
}
Expand Down

0 comments on commit 9870dbe

Please sign in to comment.