diff options
| author | Christian Fowler <spider@viovio.com> | 2006-06-25 20:34:55 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-06-25 20:34:55 +0000 |
| commit | 5db1ee713ab702f09159e08920a13c4e4439da3f (patch) | |
| tree | 862f8b8f756898deb22683eb841526da95f2e53b /edit.php | |
| parent | 6292c2280272a3bd78ffec9e3b278d0d8bbce423 (diff) | |
| download | fisheye-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.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
