]> git.mjollnir.org Git - moodle.git/commitdiff
jump menu now always shows "Jump to", see http://moodle.org/mod/forum/discuss.php...
authorgustav_delius <gustav_delius>
Wed, 9 Jun 2004 08:46:43 +0000 (08:46 +0000)
committergustav_delius <gustav_delius>
Wed, 9 Jun 2004 08:46:43 +0000 (08:46 +0000)
lib/weblib.php

index a07e6079bf58df64b50d41f16315849d146eff07..d8cd5b969222e27ba3270c674cb6559fc4037b9f 100644 (file)
@@ -1855,13 +1855,15 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
                 $selectmod = $mod;
                 $backmod = $previousmod;
                 $flag = true; // set flag so we know to use next mod for "next"
-            }
-            $mod->name = strip_tags(urldecode($mod->name));
-            if (strlen($mod->name) > 55) {
-                $mod->name = substr($mod->name, 0, 50)."...";
-            }
-            if (!$mod->visible) {
-                $mod->name = "(".$mod->name.")";
+                $mod->name = get_string('jumpto');
+            } else {
+                $mod->name = strip_tags(urldecode($mod->name));
+                if (strlen($mod->name) > 55) {
+                    $mod->name = substr($mod->name, 0, 50)."...";
+                }
+                if (!$mod->visible) {
+                    $mod->name = "(".$mod->name.")";
+                }
             }
             $menu[$url] = $mod->name;
             $previousmod = $mod;
@@ -1884,7 +1886,7 @@ function navmenu($course, $cm=NULL, $targetwindow="self") {
                    "<input type=\"submit\" value=\"&gt;\"></form>";
     }
     return "<table><tr>$logslink<td>$backmod</td><td>" .
-            popup_form("$CFG->wwwroot/mod/", $menu, "navmenu", $selected, get_string("jumpto"),
+            popup_form("$CFG->wwwroot/mod/", $menu, "navmenu", $selected, '',
                        "", "", true, $targetwindow).
             "</td><td>$nextmod</td></tr></table>";
 }