diff options
author | Zach Copley <zach@controlyourself.ca> | 2008-12-11 23:30:18 -0500 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2008-12-11 23:30:18 -0500 |
commit | 6b51941056a361327e8717ede1194df3abe430a9 (patch) | |
tree | 19f77b69ad1e6576710b3290c0a66172717c5121 /classes/Profile.php | |
parent | ba24378fdff1de0aee31878dca0e92cc87a56ae8 (diff) |
Actually crop your avatar when hitting 'crop' button on profile
darcs-hash:20081212043018-7b5ce-bc83b66e19007aa0a04fbb40053217ef92c44779.gz
Diffstat (limited to 'classes/Profile.php')
-rw-r--r-- | classes/Profile.php | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/classes/Profile.php b/classes/Profile.php index fb6ff90f1..3b6ac1d7f 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -121,16 +121,15 @@ class Profile extends Memcached_DataObject return $avatar; } - function delete_avatars() - { - $avatar = new Avatar(); - $avatar->profile_id = $this->id; - $avatar->find(); - while ($avatar->fetch()) { - $avatar->delete(); - } - return true; - } + function delete_avatars() { + $avatar = new Avatar(); + $avatar->profile_id = $this->id; + $avatar->find(); + while ($avatar->fetch()) { + $avatar->delete(); + } + return true; + } function getBestName() { |