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:
Russell Smith
2016-06-21 16:36:53 +10:00
parent 49619ce243
commit 5407c5b0f4
6 changed files with 125 additions and 52 deletions
+1 -1
View File
@@ -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.