blob: 8cff40a68cf233d5e3607ce68439effd67d8eb15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<?php
/**
* Avatar revert action
*/
$guid = get_input('guid');
$user = get_entity($guid);
if ($user) {
unset($user->icontime);
system_message(elgg_echo('avatar:revert:success'));
} else {
register_error(elgg_echo('avatar:revert:fail'));
}
forward(REFERER);
|