From: Marcel Werk Date: Fri, 12 Jul 2013 19:43:19 +0000 (+0200) Subject: Fixed attachment worker X-Git-Tag: 2.0.0_Beta_5~59 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63dadfd046608df6c54e1b6c6bd94095bc7d0a77;p=GitHub%2FWoltLab%2FWCF.git Fixed attachment worker --- diff --git a/wcfsetup/install/files/lib/system/worker/AttachmentRebuildDataWorker.class.php b/wcfsetup/install/files/lib/system/worker/AttachmentRebuildDataWorker.class.php index 5497775aae..a2d819154e 100644 --- a/wcfsetup/install/files/lib/system/worker/AttachmentRebuildDataWorker.class.php +++ b/wcfsetup/install/files/lib/system/worker/AttachmentRebuildDataWorker.class.php @@ -1,6 +1,7 @@ objectList->getObjects(), 'generateThumbnails'); - $action->executeAction(); + foreach ($this->objectList as $attachment) { + try { + $action = new AttachmentAction(array($attachment), 'generateThumbnails'); + $action->executeAction(); + } + catch (SystemException $e) {} + } } }