From c66e8dde2e178526d977752d9738e0212acdc74c Mon Sep 17 00:00:00 2001 From: Christian Fowler Date: Mon, 5 Jan 2009 04:55:56 +0000 Subject: add item to the end of the gallery position in addToGalleries; clean up naming to gallery_additions --- upload_inc.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'upload_inc.php') diff --git a/upload_inc.php b/upload_inc.php index d7946fc..6ae79b6 100644 --- a/upload_inc.php +++ b/upload_inc.php @@ -1,6 +1,6 @@ rotateImage( 'auto' ); } - $image->addToGalleries( $_REQUEST['galleryAdditions'], $pOrder ); + $image->addToGalleries( $_REQUEST['gallery_additions'] ); } // when we're using xupload, we need to remove temp files manually @@ -148,7 +148,7 @@ function fisheye_process_directory( $pDestinationDir, &$pParentGallery, $pRoot=F $galleryHash = array( 'title' => str_replace( '_', ' ', $fileName ) ); if( $newGallery->store( $galleryHash ) ) { if( $pRoot ) { - $newGallery->addToGalleries( $_REQUEST['galleryAdditions'] ); + $newGallery->addToGalleries( $_REQUEST['gallery_additions'] ); } if( is_object( $pParentGallery ) ) { $pParentGallery->addItem( $newGallery->mContentId, $order ); @@ -167,7 +167,7 @@ function fisheye_process_directory( $pDestinationDir, &$pParentGallery, $pRoot=F $imageHash = array( '_files_override' => array( $scanFile ) ); if( $newImage->store( $imageHash ) ) { if( $pRoot ) { - $newImage->addToGalleries( $_REQUEST['galleryAdditions'] ); + $newImage->addToGalleries( $_REQUEST['gallery_additions'] ); } if( !is_object( $pParentGallery ) ) { global $gBitUser; @@ -195,8 +195,8 @@ function fisheye_process_directory( $pDestinationDir, &$pParentGallery, $pRoot=F // archives can be processed or simply added to the galleries. function fisheye_process_ftp_directory( $pProcessDir ) { global $gBitSystem, $gBitUser; - if( empty( $_REQUEST['galleryAdditions'] ) ) { - $_REQUEST['galleryAdditions'] = array(); + if( empty( $_REQUEST['gallery_additions'] ) ) { + $_REQUEST['gallery_additions'] = array(); } $errors = array(); @@ -223,7 +223,7 @@ function fisheye_process_ftp_directory( $pProcessDir ) { $dirGallery = new FisheyeGallery(); $galleryHash = array( 'title' => str_replace( '_', ' ', $fileName ) ); if( $dirGallery->store( $galleryHash ) ) { - $dirGallery->addToGalleries( $_REQUEST['galleryAdditions'] ); + $dirGallery->addToGalleries( $_REQUEST['gallery_additions'] ); $errors = array_merge( $errors, fisheye_process_directory( $pProcessDir.'/'.$fileName, $dirGallery ) ); } else { $errors = array_merge( $errors, array_values( $dirGallery->mErrors ) ); @@ -235,12 +235,12 @@ function fisheye_process_ftp_directory( $pProcessDir ) { $newImage = new FisheyeImage(); $imageHash = array( 'upload' => $scanFile ); if( $newImage->store( $imageHash ) ) { - $newImage->addToGalleries( $_REQUEST['galleryAdditions'] ); + $newImage->addToGalleries( $_REQUEST['gallery_additions'] ); // if we have a gallery to add these images to, load one of them - if( !empty( $_REQUEST['galleryAdditions'][0] ) && @!is_object( $imageGallery ) ) { + if( !empty( $_REQUEST['gallery_additions'][0] ) && @!is_object( $imageGallery ) ) { $imageGallery = new FisheyeGallery(); - $imageGallery->mGalleryId = $_REQUEST['galleryAdditions'][0]; + $imageGallery->mGalleryId = $_REQUEST['gallery_additions'][0]; $imageGallery->load(); } -- cgit v1.3