summaryrefslogtreecommitdiff
path: root/edit.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 /edit.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 'edit.php')
-rw-r--r--edit.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/edit.php b/edit.php
index fd43a97..01ffe42 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.4 2005/07/17 17:36:02 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.5 2005/08/01 18:40:07 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -32,7 +32,7 @@ if( $gBitUser->hasPermission( 'bit_p_change_thumbnail_size' ) ) {
'medium' => 'Medium (400x300)',
'large' => 'Large (800x600)',
);
- $smarty->assign( 'thumbnailSizes', $thumbnailSizes );
+ $gBitSmarty->assign( 'thumbnailSizes', $thumbnailSizes );
}
if( !empty($_REQUEST['savegallery']) ) {
@@ -78,15 +78,17 @@ if( !empty($_REQUEST['savegallery']) ) {
);
$gBitSystem->confirmDialog( $formHash, array( 'warning' => 'Are you sure you want to delete the gallery '.$gContent->getTitle().'?', 'error' => 'This cannot be undone!' ) );
} else {
+ $userId = $gContent->mInfo['user_id'];
+
$recurseDelete = (!empty( $_REQUEST['recurse'] ) && ($_REQUEST['recurse'] == 'all') );
if( $gContent->expunge( $recurseDelete ) ) {
- header( "Location: ".FISHEYE_PKG_URL );
+ header( "Location: ".FISHEYE_PKG_URL.'?user_id='.$userId );
}
}
} elseif( !empty($_REQUEST['cancelgallery'] ) ) {
- header("location:".FISHEYE_PKG_URL."view.php?gallery_id=".$gContent->mGalleryId);
+ header( 'Location: '.$gContent->getDisplayUrl() );
die();
}
@@ -104,16 +106,16 @@ if ( $gBitSystem->isPackageActive('categories') ) {
// Initalize the errors list which contains any errors which occured during storage
$errors = (!empty($gContent->mErrors) ? $gContent->mErrors : array());
-$smarty->assign_by_ref('errors', $errors);
+$gBitSmarty->assign_by_ref('errors', $errors);
-$smarty->assign_by_ref( 'parentGalleries', $gContent->getParentGalleries() );
+$gBitSmarty->assign_by_ref( 'parentGalleries', $gContent->getParentGalleries() );
$getHash = array( 'user_id' => $gBitUser->mUserId, 'contain_item' => $gContent->mContentId, 'max_records' => -1, 'no_thumbnails' => TRUE, 'sort_mode'=>'title_asc' );
$galleryList = $gContent->getList( $getHash );
-$smarty->assign_by_ref('galleryList', $galleryList);
+$gBitSmarty->assign_by_ref('galleryList', $galleryList);
if( $gBitSystem->isPackageActive( 'gatekeeper' ) ) {
global $gGatekeeper;
- $smarty->assign( 'securities', $gGatekeeper->getSecurityList( $gBitUser->mUserId ) );
+ $gBitSmarty->assign( 'securities', $gGatekeeper->getSecurityList( $gBitUser->mUserId ) );
}
$gBitSystem->display( 'bitpackage:fisheye/edit_gallery.tpl', 'Edit Gallery: '.$gContent->getTitle() );