diff options
| author | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-07-14 19:39:43 +0000 |
|---|---|---|
| committer | Tyler Bello <tylerbello@users.sourceforge.net> | 2009-07-14 19:39:43 +0000 |
| commit | f1a5d4ac860196f530fb19f66f4134153a5f9d78 (patch) | |
| tree | cc549c6de1d69d0233358542c2308aa9414fa1b0 | |
| parent | e5e1cd1df9dc644e2e06ec703128d4b2c395d6c9 (diff) | |
| download | fisheye-f1a5d4ac860196f530fb19f66f4134153a5f9d78.tar.gz fisheye-f1a5d4ac860196f530fb19f66f4134153a5f9d78.tar.bz2 fisheye-f1a5d4ac860196f530fb19f66f4134153a5f9d78.zip | |
fisheye_store_upload returns a hash of errors. empty hash means SUCCESS\!
| -rw-r--r-- | FisheyeRemote.php | 8 | ||||
| -rw-r--r-- | edit.php | 3 |
2 files changed, 5 insertions, 6 deletions
diff --git a/FisheyeRemote.php b/FisheyeRemote.php index 7934e37..cfbe7d2 100644 --- a/FisheyeRemote.php +++ b/FisheyeRemote.php @@ -3,7 +3,7 @@ * Gallery2 Remote support for fisheye * * @package fisheye -* @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeRemote.php,v 1.3 2009/07/14 18:48:24 tylerbello Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeRemote.php,v 1.4 2009/07/14 19:39:43 tylerbello Exp $ * @author spider <spider@steelsun.com> * @author tylerbello <tylerbello@gmail.com> */ @@ -207,10 +207,10 @@ class FisheyeRemote { $_REQUEST['gallery_additions'] = array($parentGallery->mGalleryId); - if(fisheye_store_upload( $uploadFile , $storeHash )){ - $response = $this->createResponse( FEG2REMOTE_SUCCESS, 'Image added', array( 'item_name'=>$uploadFile['name'] ) ); - } else { + if( $errors = fisheye_store_upload( $uploadFile , $storeHash ) ){ $response = $this->createResponse( FEG2REMOTE_UPLOAD_PHOTO_FAIL, 'Export Failed' ); + } else { + $response = $this->createResponse( FEG2REMOTE_SUCCESS, 'Image added', array( 'item_name'=>$uploadFile['name'] ) ); } } @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.35 2009/03/30 15:02:44 lsces Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.36 2009/07/14 19:39:43 tylerbello Exp $ * @package fisheye * @subpackage functions */ @@ -49,7 +49,6 @@ if( !empty( $_REQUEST['savegallery'] ) ) { $_REQUEST['rows_per_page'] = $_REQUEST['images_per_page']; $_REQUEST['cols_per_page'] = '1'; } - if( $gContent->store( $_REQUEST ) ) { $gContent->storePreference( 'is_public', !empty( $_REQUEST['is_public'] ) ? $_REQUEST['is_public'] : NULL ); $gContent->storePreference( 'allow_comments', !empty( $_REQUEST['allow_comments'] ) ? $_REQUEST['allow_comments'] : NULL ); |
