From 71419f8cd32a849b86f92787c558565ae3b2772a Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 27 Sep 2016 13:23:13 +0200 Subject: [PATCH] Removed obsolete code --- .../system/importer/UserAvatarImporter.class.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php b/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php index f2165c7996..ca5f8a67b9 100644 --- a/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/UserAvatarImporter.class.php @@ -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 -- 2.20.1