diff --git a/user/edit.php b/user/edit.php
index 53fdbb6321d..d3999fa6d12 100644
--- a/user/edit.php
+++ b/user/edit.php
@@ -12,7 +12,7 @@
}
if (! $course = get_record("course", "id", $course)) {
- error("User ID was incorrect");
+ error("Course ID was incorrect");
}
require_login($course->id);
@@ -150,13 +150,13 @@
$participants = get_string("participants");
if ($course->category) {
- print_header($editmyprofile, $editmyprofile,
+ print_header("$course->fullname: $editmyprofile", "$course->fullname: $editmyprofile",
"wwwroot/course/view.php?id=$course->id\">$course->shortname
-> id\">$participants
-> id&course=$course->id\">$user->firstname $user->lastname
-> $editmyprofile", "");
} else {
- print_header($editmyprofile, $editmyprofile,
+ print_header("$course->fullname: $editmyprofile", "$course->fullname",
"id&course=$course->id\">$user->firstname $user->lastname
-> $editmyprofile", "");
}
diff --git a/user/view.php b/user/view.php
index 2c4d02f1e3c..d891503e513 100644
--- a/user/view.php
+++ b/user/view.php
@@ -34,7 +34,7 @@
"id\">$course->shortname ->
id\">$participants -> $fullname", "");
} else {
- print_header("$personalprofile: $fullname", "$personalprofile: $fullname", "$fullname", "");
+ print_header("$course->fullname: $personalprofile: $fullname", "$course->fullname", "$fullname", "");
}
if ($course->category and ! isguest() ) {