diff --git a/course/mod.php b/course/mod.php
index a20d054fb44..9dd6023a50d 100644
--- a/course/mod.php
+++ b/course/mod.php
@@ -470,14 +470,20 @@
$streditinga = get_string("editinga", "moodle", $fullmodulename);
$strmodulenameplural = get_string("modulenameplural", $module->name);
+ if ($module->name == "label") {
+ $focuscursor = "";
+ } else {
+ $focuscursor = "form.name";
+ }
+
if ($course->category) {
print_header("$course->shortname: $streditinga", "$course->fullname",
"wwwroot/course/view.php?id=$course->id\">$course->shortname ->
wwwroot/mod/$module->name/index.php?id=$course->id\">$strmodulenameplural ->
- $streditinga", "form.name", "", false);
+ $streditinga", $focuscursor, "", false);
} else {
print_header("$course->shortname: $streditinga", "$course->fullname",
- "$streditinga", "form.name", "", false);
+ "$streditinga", $focuscursor, "", false);
}
unset($SESSION->modform); // Clear any old ones that may be hanging around.