mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-55027_master' of git://github.com/markn86/moodle
This commit is contained in:
commit
941b725693
@ -202,8 +202,10 @@ class helper {
|
||||
'connecttimeout' => 5
|
||||
);
|
||||
|
||||
if (!$iconfiles = $fs->create_file_from_url($filerecord, $url, $urlparams)) {
|
||||
return self::PROFILE_IMAGE_UPDATE_FAILED;
|
||||
try {
|
||||
$fs->create_file_from_url($filerecord, $url, $urlparams);
|
||||
} catch (\file_exception $e) {
|
||||
return get_string($e->errorcode, $e->module, $e->a);
|
||||
}
|
||||
|
||||
$iconfile = $fs->get_area_files($context->id, 'user', 'newicon', false, 'itemid', false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user