From: Michael J. Rubinsky Date: Thu, 17 Jun 2010 18:56:19 +0000 (-0400) Subject: fix api call X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=61ccb02baff68b3cf61b273272accb413a20c252;p=horde.git fix api call --- diff --git a/news/add.php b/news/add.php index 839a626dc..b56da9dc9 100644 --- a/news/add.php +++ b/news/add.php @@ -451,11 +451,11 @@ if ($form->validate()) { $news->write_db->query('UPDATE ' . $news->prefix . ' SET gallery = ? WHERE id = ?', array($info['gallery'], $id)); foreach ($images_uploaded as $i) { try { - $registry->images->saveImage(null, $info['gallery'], - array('filename' => $info['picture_' . $i]['file'], - 'description' => $info['caption_' . ($i == 0 ? $i . '_' . $default_lang: $i)], - 'type' => $info['picture_' . $i]['type'], - 'data' => file_get_contents($info['picture_' . $i]['file']))); + $registry->images->saveImage($info['gallery'], + array('filename' => $info['picture_' . $i]['file'], + 'description' => $info['caption_' . ($i == 0 ? $i . '_' . $default_lang: $i)], + 'type' => $info['picture_' . $i]['type'], + 'data' => file_get_contents($info['picture_' . $i]['file']))); } catch (Horde_Exception $e) { $notification->push(_("There was an error with the uploaded image: ") . $e->getMessage(), 'horde.warning'); }