Index: lib/weblib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/weblib.php,v retrieving revision 1.1056 diff -u -r1.1056 weblib.php --- lib/weblib.php 22 Apr 2008 14:14:47 -0000 1.1056 +++ lib/weblib.php 23 Apr 2008 16:39:30 -0000 @@ -5328,6 +5328,7 @@ } $url = $mod->modname.'/view.php?id='. $mod->id; + $shouldbejump = false; if ($flag) { // the current mod is the "next" mod $nextmod = $mod; $flag = false; @@ -5337,8 +5338,7 @@ $selectmod = $mod; $backmod = $previousmod; $flag = true; // set flag so we know to use next mod for "next" - $mod->name = $strjumpto; - $strjumpto = ''; + $shouldbejump = true; // for this one, replace the name with 'Jump to' } else { $mod->name = strip_tags(format_string(urldecode($mod->name),true)); if (strlen($mod->name) > ($width+5)) { @@ -5348,7 +5348,12 @@ $mod->name = '('.$mod->name.')'; } } - $menu[$url] = $mod->name; + if($shouldbejump) { + $menu[$url] = $strjumpto; + $strjumpto=''; + } else { + $menu[$url] = $mod->name; + } if (empty($THEME->navmenuiconshide)) { $menustyle[$url] = 'style="background-image: url('.$CFG->modpixpath.'/'.$mod->modname.'/icon.gif);"'; // Unfortunately necessary to do this here }