Merged Jon's fixes from HEAD for change password in debug mode. Changes in user/edit.html not present in stable so not patched
This commit is contained in:
@@ -714,6 +714,7 @@ $string['moveright'] = 'Move right';
|
||||
$string['moveselectedcoursesto'] = 'Move selected courses to...';
|
||||
$string['movetoanotherfolder'] = 'Move to another folder';
|
||||
$string['moveup'] = 'Move up';
|
||||
$string['mustchangepassword'] = 'The new password must be different than the current one';
|
||||
$string['mustconfirm'] = 'You need to confirm your login';
|
||||
$string['mycourses'] = 'My courses';
|
||||
$string['name'] = 'Name';
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
$strpasswordchanged = get_string("passwordchanged");
|
||||
|
||||
if ($course->id) {
|
||||
if (!empty($course->id)) {
|
||||
add_to_log($course->id, "user", "change password", "view.php?id=$user->id&course=$course->id", "$user->id");
|
||||
$fullname = fullname($USER, true);
|
||||
print_header($strpasswordchanged, $strpasswordchanged,
|
||||
@@ -64,11 +64,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if ($course->id) {
|
||||
$frm->id = $id;
|
||||
}
|
||||
// We NEED to set this, because the form assumes it has a value!
|
||||
$frm->id = empty($course->id) ? 0 : $course->id;
|
||||
|
||||
if (empty($frm->username)) {
|
||||
$frm->username = get_moodle_cookie();
|
||||
|
||||
Reference in New Issue
Block a user