summaryrefslogtreecommitdiff
path: root/upload.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-06-04 10:26:51 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-06-04 10:26:51 +0000
commitf80be622634c0b54db20af9ebbc0ec9e25384099 (patch)
tree3945457564fe1cfbd27f7d5cad356a14c4d2ee91 /upload.php
parent7aaa18e2eb015e2287a9c29285cc30f414fc094d (diff)
downloadfisheye-f80be622634c0b54db20af9ebbc0ec9e25384099.tar.gz
fisheye-f80be622634c0b54db20af9ebbc0ec9e25384099.tar.bz2
fisheye-f80be622634c0b54db20af9ebbc0ec9e25384099.zip
fix multifile upload when giga isn't used
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/upload.php b/upload.php
index 9047830..a823b3a 100644
--- a/upload.php
+++ b/upload.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.14 2006/05/29 17:26:45 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.15 2006/06/04 10:26:51 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -32,7 +32,7 @@ if( !empty( $_REQUEST['save_image'] ) ) {
foreach( array_keys( $_FILES ) as $key ) {
if( preg_match( '/(^image|pdf)/i', $_FILES[$key]['type'] ) ) {
$upImages[$key] = $_FILES[$key];
- } elseif( !empty( $_FILES[$key]['size'] ) ) {
+ } elseif( !empty( $_FILES[$key]['tmp_name'] ) && !empty( $_FILES[$key]['name'] ) ) {
$upArchives[$key] = $_FILES[$key];
}
}
@@ -94,7 +94,9 @@ if( $gBitSystem->isPackageActive( 'quota' ) ) {
}
}
-$gBitSmarty->assign( 'loadAjax', TRUE );
+//$gBitSmarty->assign( 'loadAjax', TRUE );
+
+$gContent->invokeServices( 'content_edit_function' );
// Get a list of all existing galleries
$gFisheyeGallery = new FisheyeGallery();
@@ -105,6 +107,8 @@ $gBitSmarty->assign_by_ref( 'galleryList', $galleryList['data'] );
$gBitSmarty->assign( 'uploadMax', $uploadMax );
if( $gBitSystem->isPackageActive( 'gigaupload' ) ) {
gigapload_smarty_setup( FISHEYE_PKG_URL.'upload.php' );
+} else {
+ $gBitSmarty->assign( 'loadMultiFile', TRUE );
}
$gBitSystem->display( 'bitpackage:fisheye/upload_fisheye.tpl', 'Upload Images' );