MDL-51789 users: Allow picture update from webservices.
useredit_update_picture as moved to user_update_picture as it's more general. It was also moved to user/lib.php so it can be used by both webservices and edit without more include files.
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ if ($usernew = $userform->get_data()) {
|
||||
|
||||
// Update user picture.
|
||||
if (empty($CFG->disableuserimages)) {
|
||||
useredit_update_picture($usernew, $userform, $filemanageroptions);
|
||||
core_user::update_picture($usernew, $filemanageroptions);
|
||||
}
|
||||
|
||||
// Update mail bounces.
|
||||
|
||||
Reference in New Issue
Block a user