From 61ccb02baff68b3cf61b273272accb413a20c252 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 17 Jun 2010 14:56:19 -0400 Subject: [PATCH] fix api call --- news/add.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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'); } -- 2.11.0