move avatar scaling and saving to Avatar and Profile
authorEvan Prodromou <evan@prodromou.name>
Thu, 5 Jun 2008 19:37:08 +0000 (15:37 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 5 Jun 2008 19:37:08 +0000 (15:37 -0400)
commit56021d95721c06b618dac6272e58d22a3e87037f
treef232f32b5f7e78f80704c76b1ec6e5d4fd633893
parentdcc915bd9305349ba6c1a0a716481de0806f5ecf
move avatar scaling and saving to Avatar and Profile

Extracted the code for setting a new original avatar to the Profile
class, and moved some of it to Avatar, too. This makes it easier to
have the same functionality whether an avatar is set using the profile
settings (for our users), or on a remote subscription. Necessitated
changing the filenaming function to just take an ID.

darcs-hash:20080605193708-84dde-a441cc0474951ce7f1a1da9310b5145c0b7c3070.gz
actions/avatar.php
actions/finishremotesubscribe.php
actions/userauthorization.php
classes/Avatar.php
classes/Profile.php
lib/util.php