summaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-06-25 20:34:55 +0000
committerChristian Fowler <spider@viovio.com>2006-06-25 20:34:55 +0000
commit5db1ee713ab702f09159e08920a13c4e4439da3f (patch)
tree862f8b8f756898deb22683eb841526da95f2e53b /edit.php
parent6292c2280272a3bd78ffec9e3b278d0d8bbce423 (diff)
downloadfisheye-5db1ee713ab702f09159e08920a13c4e4439da3f.tar.gz
fisheye-5db1ee713ab702f09159e08920a13c4e4439da3f.tar.bz2
fisheye-5db1ee713ab702f09159e08920a13c4e4439da3f.zip
change allow_comments to use liberty content_prefs and also allow gallery level commenting
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index 4195e91..5f105ad 100644
--- a/edit.php
+++ b/edit.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.12 2006/06/22 20:11:53 sylvieg Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_fisheye/edit.php,v 1.13 2006/06/25 20:34:54 spiderr Exp $
* @package fisheye
* @subpackage functions
*/
@@ -37,6 +37,7 @@ if( $gBitUser->hasPermission( 'p_fisheye_change_thumb_size' ) ) {
if( !empty($_REQUEST['savegallery']) ) {
if( $gContent->store( $_REQUEST ) ) {
+ $gContent->storePreference( 'allow_comments', !empty( $_REQUEST['allow_comments'] ) ? $_REQUEST['allow_comments'] : NULL );
// make sure var is fully stuffed with current data
$gContent->load();
// set the mappings, or if nothing checked, nuke them all