diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-15 20:30:59 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-16 19:53:04 -0500 |
commit | 87a7d965c87e882857fc759d765a9d6b2f01fafa (patch) | |
tree | 32053a81ceedf67f4655b266b98618752973347b /actions/avatar/upload.php | |
parent | 92c1bcd1355c2e4b661d0bb90f5492258815d329 (diff) | |
download | elgg-87a7d965c87e882857fc759d765a9d6b2f01fafa.tar.gz elgg-87a7d965c87e882857fc759d765a9d6b2f01fafa.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")); |