summaryrefslogtreecommitdiff
path: root/upload.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-12-24 13:39:03 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-12-24 13:39:03 +0000
commit4f62ddabd9d4e638b9b427f834a72d710bd29167 (patch)
tree5c91039904df8ae31b04a46ade9bef410a9812ae /upload.php
parentce4ddbe874241dbaf77cbabec7664a634f16bfd8 (diff)
downloadfisheye-4f62ddabd9d4e638b9b427f834a72d710bd29167.tar.gz
fisheye-4f62ddabd9d4e638b9b427f834a72d710bd29167.tar.bz2
fisheye-4f62ddabd9d4e638b9b427f834a72d710bd29167.zip
add default sort mode when no position information is availabe, add option to disable auto ordering when uploading items - this way it's possible to simply have an autosorted gallery without the need to visit the image_order.php page
Diffstat (limited to 'upload.php')
-rw-r--r--upload.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/upload.php b/upload.php
index 4b256a6..a3c6661 100644
--- a/upload.php
+++ b/upload.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.23 2006/11/30 02:24:05 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/upload.php,v 1.24 2006/12/24 13:39:02 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -58,7 +58,9 @@ if( !empty( $_REQUEST['save_image'] ) ) {
$order = 100;
foreach( array_keys( $upImages ) as $key ) {
fisheye_store_upload( $upImages[$key], $order, $upData[$key], !empty( $_REQUEST['rotate_image'] ) );
- $order += 10;
+ if( !$gBitSystem->isFeatureActive( 'fisheye_gallery_upload_noorder' ) ) {
+ $order += 10;
+ }
}
if( !is_object( $gContent ) || !$gContent->isValid() ) {