diff options
| author | Christian Fowler <spider@viovio.com> | 2008-06-25 22:21:09 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-06-25 22:21:09 +0000 |
| commit | a89e38ec709485f5d16c97983b78c2af616ad843 (patch) | |
| tree | 04dc6954749a023c5be4ce1637167ac1471408c5 /edit_gallery_perms.php | |
| parent | bf1754e973fa6222327284fd4d519c80a1844d1c (diff) | |
| download | fisheye-a89e38ec709485f5d16c97983b78c2af616ad843.tar.gz fisheye-a89e38ec709485f5d16c97983b78c2af616ad843.tar.bz2 fisheye-a89e38ec709485f5d16c97983b78c2af616ad843.zip | |
change display call to use a hash for display options, add display_mode to options hash
Diffstat (limited to 'edit_gallery_perms.php')
| -rw-r--r-- | edit_gallery_perms.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/edit_gallery_perms.php b/edit_gallery_perms.php index 0b6395a..acac972 100644 --- a/edit_gallery_perms.php +++ b/edit_gallery_perms.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit_gallery_perms.php,v 1.4 2005/08/24 20:50:17 squareing Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit_gallery_perms.php,v 1.5 2008/06/25 22:21:09 spiderr Exp $ * @package fisheye * @subpackage functions */ @@ -18,7 +18,7 @@ global $gBitSystem, $fisheyePermNameMap; // Make sure an gallery has been specified if (empty($_REQUEST['gallery_id'])) { $gBitSmarty->assign('msg', tra("No gallery specified")); - $gBitSystem->display( "error.tpl" ); + $gBitSystem->display( "error.tpl" , NULL, array( 'display_mode' => 'edit' )); die; } @@ -26,12 +26,12 @@ include_once( FISHEYE_PKG_PATH.'gallery_lookup_inc.php' ); if (empty($gContent->mContentId)) { $gBitSmarty->assign( 'msg', tra( "The specified gallery does not exist" )); - $gBitSystem->display("error.tpl"); + $gBitSystem->display("error.tpl", NULL, array( 'display_mode' => 'edit' )); die; } elseif ($gContent->mInfo['user_id'] != $gBitUser->mUserId && $gContent->mInfo['perm_level'] < FISHEYE_PERM_ADMIN) { // This user does not own this gallery and they have not been granted the permission to edit user permissions for this gallery $gBitSmarty->assign( 'msg', tra( "You cannot edit this image gallery" ) ); - $gBitSystem->display( "error.tpl" ); + $gBitSystem->display( "error.tpl" , NULL, array( 'display_mode' => 'edit' )); die; } @@ -58,6 +58,6 @@ if (!empty($_REQUEST['submitUpdatePerms'])) { $userPerms = $gContent->getAllUserPermissions(); } -$gBitSystem->display('bitpackage:fisheye/edit_gallery_perms.tpl'); +$gBitSystem->display('bitpackage:fisheye/edit_gallery_perms.tpl', NULL, array( 'display_mode' => 'edit' )); ?> |
