summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-28 09:48:04 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-28 09:48:04 -0400
commit4f37f4b764068ec0e3269f19c740d494286ae37e (patch)
tree7bd9c20579102dc42ecaa2718a0d155f5b05e5f2 /actions
parent9977591b78210bcd200376e1476809db12384f2e (diff)
remove bogus validation code
darcs-hash:20080528134804-84dde-994624cc82941094719670f78212c391127cc9a6.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/avatar.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/actions/avatar.php b/actions/avatar.php
index 33b5452d0..81eb23cec 100644
--- a/actions/avatar.php
+++ b/actions/avatar.php
@@ -128,17 +128,6 @@ class AvatarAction extends SettingsAction {
$avatar->url = common_avatar_url($filename);
$avatar->created = DB_DataObject_Cast::dateTime(); # current time
- $val = $avatar->validate();
-
- if ($val !== TRUE) {
- $err = '';
- foreach ($val as $k=>$v) {
- $err .= _t('Something wrong with ') . $k;
- $this->show_form($err);
- return;
- }
- }
-
foreach (array(AVATAR_PROFILE_SIZE, AVATAR_STREAM_SIZE, AVATAR_MINI_SIZE) as $size) {
$scaled[] = $this->scale_avatar($user, $avatar, $size);
}