Elgg
Version 6.1
|
Go to the source code of this file.
Variables | |
$guid = (int) get_input('guid') | |
Avatar upload action. More... | |
$owner = get_user($guid) | |
if(!$owner||!$owner->canEdit()) if(get_input('avatar_remove')) | $avatar = elgg_get_uploaded_file('avatar', false) |
if(!empty($avatar)&&!$avatar->isValid()) elseif(empty($avatar)) if(!$owner->saveIconFromUploadedFile('avatar')) if(!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) | $view = 'river/user/default/profileiconupdate' |
if (!$owner||!$owner->canEdit()) if (get_input('avatar_remove')) $avatar = elgg_get_uploaded_file('avatar', false) |
Definition at line 21 of file upload.php.
$guid = (int) get_input('guid') |
Avatar upload action.
Definition at line 6 of file upload.php.
$owner = get_user($guid) |
Definition at line 7 of file upload.php.
if (!empty($avatar)&&!$avatar->isValid()) elseif (empty($avatar)) if (!$owner->saveIconFromUploadedFile('avatar')) if (!elgg_trigger_event('profileiconupdate', $owner->type, $owner)) $view = 'river/user/default/profileiconupdate' |
Definition at line 39 of file upload.php.