// create thumbnails
if (ATTACHMENT_ENABLE_THUMBNAILS) {
if ($attachment->isImage) {
- $action = new AttachmentAction(array($attachment), 'generateThumbnails');
- $action->executeAction();
+ try {
+ $action = new AttachmentAction(array($attachment), 'generateThumbnails');
+ $action->executeAction();
+ }
+ catch (SystemException $e) {}
}
}
if (!$data['commentID']) return 0;
$action = new CommentResponseAction(array(), 'create', array(
- 'data' => array_merge($data, array('objectTypeID' => $this->objectTypeID))
+ 'data' => $data
));
$returnValues = $action->executeAction();
$newID = $returnValues['returnValues']->responseID;