Commit 4f37f4b7 authored by Evan Prodromou's avatar Evan Prodromou

remove bogus validation code

darcs-hash:20080528134804-84dde-994624cc82941094719670f78212c391127cc9a6.gz
parent 9977591b
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment