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:
mjollnir_
2004-12-16 21:32:14 +00:00
parent b8be93026c
commit 13f26d69a7
2 changed files with 4 additions and 6 deletions
+1
View File
@@ -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';
+3 -6
View File
@@ -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();