aboutsummaryrefslogtreecommitdiff
path: root/actions/avatar/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/avatar/upload.php')
-rw-r--r--actions/avatar/upload.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/actions/avatar/upload.php b/actions/avatar/upload.php
index 2e8ff98b3..0752615e0 100644
--- a/actions/avatar/upload.php
+++ b/actions/avatar/upload.php
@@ -44,6 +44,12 @@ foreach ($icon_sizes as $name => $size_info) {
}
}
+// reset crop coordinates
+$owner->x1 = 0;
+$owner->x2 = 0;
+$owner->y1 = 0;
+$owner->y2 = 0;
+
$owner->icontime = time();
if (elgg_trigger_event('profileiconupdate', $owner->type, $owner)) {
system_message(elgg_echo("avatar:upload:success"));