diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-12-24 13:39:03 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-12-24 13:39:03 +0000 |
| commit | 4f62ddabd9d4e638b9b427f834a72d710bd29167 (patch) | |
| tree | 5c91039904df8ae31b04a46ade9bef410a9812ae /upload.php | |
| parent | ce4ddbe874241dbaf77cbabec7664a634f16bfd8 (diff) | |
| download | fisheye-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.php | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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() ) { |
