MDL-49904 user: set title when editing another user
authorBrian Barnes <brian.barnes@totaralms.com>
Thu, 16 Apr 2015 23:35:05 +0000 (11:35 +1200)
committerBrian Barnes <brian.barnes@totaralms.com>
Fri, 17 Apr 2015 00:09:30 +0000 (12:09 +1200)
user/editadvanced.php

index 024b9f5..81aa620 100644 (file)
@@ -311,8 +311,10 @@ if ($user->id == -1 or ($user->id != $USER->id)) {
     if ($user->id == -1) {
         echo $OUTPUT->header();
     } else {
+        $streditmyprofile = get_string('editmyprofile');
         $userfullname = fullname($user, true);
         $PAGE->set_heading($userfullname);
+        $PAGE->set_title("$course->shortname: $streditmyprofile - $userfullname");
         echo $OUTPUT->header();
         echo $OUTPUT->heading($userfullname);
     }