Small optimization
authorMarcel Werk <burntime@woltlab.com>
Fri, 12 Jul 2013 14:59:10 +0000 (16:59 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 12 Jul 2013 14:59:10 +0000 (16:59 +0200)
wcfsetup/install/files/lib/system/importer/AbstractAttachmentImporter.class.php

index 2ae24f7e929ef9e0fa3aeb95d800615969b2b209..ce9e168cb936bf485f474435094e6fc701117617 100644 (file)
@@ -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) {