Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Tue, 27 Sep 2016 11:23:13 +0000 (13:23 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 27 Sep 2016 11:23:20 +0000 (13:23 +0200)
wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php

index f2165c79961547423d4bd0a22c78631aadcd0434..ca5f8a67b9195e9802b24b1eb6070eebe70e2c36 100644 (file)
@@ -64,15 +64,10 @@ class UserAvatarImporter extends AbstractImporter {
                        
                        // enforces dimensions
                        if ($data['width'] > UserAvatar::AVATAR_SIZE || $data['height'] > UserAvatar::AVATAR_SIZE) {
-                               try {
-                                       $adapter = ImageHandler::getInstance()->getAdapter();
-                                       $adapter->loadFile($avatar->getLocation());
-                                       $thumbnail = $adapter->createThumbnail(UserAvatar::AVATAR_SIZE, UserAvatar::AVATAR_SIZE, false);
-                                       $adapter->writeImage($thumbnail, $avatar->getLocation());
-                               }
-                               catch (SystemException $e) {
-                                       throw new SystemException();
-                               }
+                               $adapter = ImageHandler::getInstance()->getAdapter();
+                               $adapter->loadFile($avatar->getLocation());
+                               $thumbnail = $adapter->createThumbnail(UserAvatar::AVATAR_SIZE, UserAvatar::AVATAR_SIZE, false);
+                               $adapter->writeImage($thumbnail, $avatar->getLocation());
                        }
                        
                        // update owner