summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-08-29 14:48:03 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-08-29 14:48:03 +0000
commita19d901463f56065503a7122b997baf99d0f1884 (patch)
tree67aeb5cc080b2363f8ff62fb671e4cd46f599246 /edit.php
parent01d954e275cf47f4bba2fc1a87ae6ac30e192a4a (diff)
downloadfisheye-a19d901463f56065503a7122b997baf99d0f1884.tar.gz
fisheye-a19d901463f56065503a7122b997baf99d0f1884.tar.bz2
fisheye-a19d901463f56065503a7122b997baf99d0f1884.zip
start work on public galleries - basics working
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/edit.php b/edit.php
index 5f105ad..634f02b 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.13 2006/06/25 20:34:54 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.14 2006/08/29 14:48:02 squareing Exp $
* @package fisheye
* @subpackage functions
*/
@@ -35,8 +35,9 @@ if( $gBitUser->hasPermission( 'p_fisheye_change_thumb_size' ) ) {
$gBitSmarty->assign( 'thumbnailSizes', $thumbnailSizes );
}
-if( !empty($_REQUEST['savegallery']) ) {
+if( !empty( $_REQUEST['savegallery'] ) ) {
if( $gContent->store( $_REQUEST ) ) {
+ $gContent->storePreference( 'is_public', !empty( $_REQUEST['is_public'] ) ? $_REQUEST['is_public'] : NULL );
$gContent->storePreference( 'allow_comments', !empty( $_REQUEST['allow_comments'] ) ? $_REQUEST['allow_comments'] : NULL );
// make sure var is fully stuffed with current data
$gContent->load();
@@ -50,7 +51,7 @@ if( !empty($_REQUEST['savegallery']) ) {
header("location: ".$gContent->getDisplayUrl() );
die();
}
-}elseif( !empty($_REQUEST['delete']) ) {
+} elseif( !empty( $_REQUEST['delete'] ) ) {
$gContent->hasUserPermission( 'p_fisheye_admin', TRUE, tra( "You do not have permission to delete this image gallery" ) );
if( !empty( $_REQUEST['cancel'] ) ) {