From: Marcel Werk Date: Fri, 12 Jul 2013 14:59:10 +0000 (+0200) Subject: Small optimization X-Git-Tag: 2.0.0_Beta_5~67 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d5debb7ef4f18b574cd494311cce43cd05ca7f86;p=GitHub%2FWoltLab%2FWCF.git Small optimization --- diff --git a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php index 2ae24f7e92..ce9e168cb9 100644 --- a/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php @@ -55,17 +55,6 @@ class AbstractAttachmentImporter implements IImporter { throw new SystemException(); } - // create thumbnails - if (ATTACHMENT_ENABLE_THUMBNAILS) { - if ($attachment->isImage) { - try { - $action = new AttachmentAction(array($attachment), 'generateThumbnails'); - $action->executeAction(); - } - catch (SystemException $e) {} - } - } - return $attachment->attachmentID; } catch (SystemException $e) {