diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-15 20:30:59 -0500 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2011-11-15 20:30:59 -0500 |
commit | 7eab6805b6cf3528066f772e501c9daff22cf191 (patch) | |
tree | 0d4aa4e79b105f1ea848df7e670d19bad404fb86 /actions/avatar/upload.php | |
parent | fbbed3deaa0090173d398587cfea4af144d062a2 (diff) | |
download | elgg-7eab6805b6cf3528066f772e501c9daff22cf191.tar.gz elgg-7eab6805b6cf3528066f772e501c9daff22cf191.tar.bz2 |
fixed bugs in avatar cropping with remembering old crop coordinates and resizing the master
Diffstat (limited to 'actions/avatar/upload.php')
-rw-r--r-- | actions/avatar/upload.php | 6 |
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")); |