summaryrefslogtreecommitdiff
path: root/image_order.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2005-08-01 18:40:27 +0000
committerMax Kremmel <xing@synapse.plus.com>2005-08-01 18:40:27 +0000
commite0855901be732e522fb3e300b2e70af702124464 (patch)
tree8f6a68c00ad0bebdb986586ef5287242e2bd4cc6 /image_order.php
parent18c7d1bed3043cbb682431cc297f4d235b137d1e (diff)
downloadfisheye-e0855901be732e522fb3e300b2e70af702124464.tar.gz
fisheye-e0855901be732e522fb3e300b2e70af702124464.tar.bz2
fisheye-e0855901be732e522fb3e300b2e70af702124464.zip
merge recent changes with HEAD - R1 and HEAD are identical now
Diffstat (limited to 'image_order.php')
-rw-r--r--image_order.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/image_order.php b/image_order.php
index ffeb3d6..7717c40 100644
--- a/image_order.php
+++ b/image_order.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/image_order.php,v 1.3 2005/07/25 20:02:04 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/image_order.php,v 1.4 2005/08/01 18:40:07 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -19,7 +19,7 @@ include_once( FISHEYE_PKG_PATH.'gallery_lookup_inc.php' );
if( $gBitSystem->isPackageActive( 'gatekeeper' ) ) {
global $gGatekeeper;
- $smarty->assign( 'securities', $gGatekeeper->getSecurityList( $gBitUser->mUserId ) );
+ $gBitSmarty->assign( 'securities', $gGatekeeper->getSecurityList( $gBitUser->mUserId ) );
}
// Ensure the user has the permission to create new image galleries
@@ -28,7 +28,10 @@ if( !$gContent->hasUserPermission( 'bit_p_edit_fisheye' ) ) {
$gBitSystem->fatalError( tra( "You cannot edit this image gallery" ) );
}
-if (!empty($_REQUEST['updateImageOrder'])) {
+if (!empty($_REQUEST['cancel'])) {
+ header( 'Location: '.$gContent->getDisplayUrl() );
+ die;
+} elseif (!empty($_REQUEST['updateImageOrder'])) {
if( !empty( $_REQUEST['batch'] ) ) {
// flip so we can do instant has lookup
$batchCon = array_flip( $_REQUEST['batch'] );
@@ -131,11 +134,11 @@ if (!empty($_REQUEST['updateImageOrder'])) {
// Get a list of all existing galleries
$listHash = array( 'user_id'=>$gBitUser->mUserId );
$galleryList = $gContent->getList( $listHash );
-$smarty->assign_by_ref('galleryList', $galleryList);
+$gBitSmarty->assign_by_ref('galleryList', $galleryList);
$gContent->loadImages();
-$smarty->assign_by_ref('galleryImages', $gContent->mItems);
+$gBitSmarty->assign_by_ref('galleryImages', $gContent->mItems);
-$smarty->assign_by_ref('formfeedback', $feedback);
+$gBitSmarty->assign_by_ref('formfeedback', $feedback);
$gBitSystem->display( 'bitpackage:fisheye/image_order.tpl', 'Edit Gallery Images: '.$gContent->getTitle() );