From d5debb7ef4f18b574cd494311cce43cd05ca7f86 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 12 Jul 2013 16:59:10 +0200 Subject: [PATCH] Small optimization --- .../importer/AbstractAttachmentImporter.class.php | 11 ----------- 1 file changed, 11 deletions(-) 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) { -- 2.20.1