From 63dadfd046608df6c54e1b6c6bd94095bc7d0a77 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 12 Jul 2013 21:43:19 +0200 Subject: [PATCH] Fixed attachment worker --- .../worker/AttachmentRebuildDataWorker.class.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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) {} + } } } -- 2.20.1