]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9180 Change password screen doesn't show the username like it should; merged...
authorskodak <skodak>
Mon, 2 Apr 2007 18:03:13 +0000 (18:03 +0000)
committerskodak <skodak>
Mon, 2 Apr 2007 18:03:13 +0000 (18:03 +0000)
login/change_password_form.php

index 685200219e1489c29b2cd858b84effbfdbc9d556..fb41c12a6df20111476bf06e0024b6e9288271f9 100644 (file)
@@ -12,7 +12,7 @@ class login_change_password_form extends moodleform {
         $mform->addElement('header', '', get_string('changepassword'), '');
 
         // visible elements
-        $mform->addElement('static', 'username', get_string('username'));
+        $mform->addElement('static', 'username', get_string('username'), $USER->username);
 
         $mform->addElement('password', 'password', get_string('oldpassword'));
         $mform->addRule('password', get_string('required'), 'required', null, 'client');