]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
remove bogus validation code
authorEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 13:48:04 +0000 (09:48 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 28 May 2008 13:48:04 +0000 (09:48 -0400)
darcs-hash:20080528134804-84dde-994624cc82941094719670f78212c391127cc9a6.gz

actions/avatar.php

index 33b5452d0b3b68802784f00aa8d43f546151033a..81eb23cec0b3696c7f4c095a495aaae85724eb59 100644 (file)
@@ -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);
                }