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 /FisheyeGallery.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 'FisheyeGallery.php')
| -rw-r--r-- | FisheyeGallery.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/FisheyeGallery.php b/FisheyeGallery.php index 11e8809..5996315 100644 --- a/FisheyeGallery.php +++ b/FisheyeGallery.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeGallery.php,v 1.30 2006/06/22 17:31:11 sylvieg Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeGallery.php,v 1.31 2006/06/25 20:34:54 spiderr Exp $ * @package fisheye */ @@ -235,9 +235,6 @@ class FisheyeGallery extends FisheyeBase { if (empty($pStorageHash['title'])) { $this->mErrors[] = "You must specify a title for this image gallery"; } - if (!empty($pStorageHash['image_comment'])) { - $pStorageHash['image_comment'] = 'y'; - } $pStorageHash['content_type_guid'] = FISHEYEGALLERY_CONTENT_TYPE_GUID; @@ -343,14 +340,14 @@ class FisheyeGallery extends FisheyeBase { $this->mInfo['content_id'] = $this->mContentId; if ($this->galleryExistsInDatabase()) { $query = "UPDATE `".BIT_DB_PREFIX."fisheye_gallery` - SET `rows_per_page` = ?, `cols_per_page` = ?, `thumbnail_size` = ?, `image_comment` = ? + SET `rows_per_page` = ?, `cols_per_page` = ?, `thumbnail_size` = ? WHERE `gallery_id` = ?"; - $bindVars = array($pStorageHash['rows_per_page'], $pStorageHash['cols_per_page'], $pStorageHash['thumbnail_size'], $pStorageHash['image_comment'], $this->mGalleryId); + $bindVars = array($pStorageHash['rows_per_page'], $pStorageHash['cols_per_page'], $pStorageHash['thumbnail_size'], $this->mGalleryId); } else { $this->mGalleryId = $this->mDb->GenID('fisheye_gallery_id_seq'); $this->mInfo['gallery_id'] = $this->mGalleryId; - $query = "INSERT INTO `".BIT_DB_PREFIX."fisheye_gallery` (`gallery_id`, `content_id`, `rows_per_page`, `cols_per_page`, `thumbnail_size`, `image_comment`) VALUES (?,?,?,?,?,?)"; - $bindVars = array($this->mGalleryId, $this->mContentId, $pStorageHash['rows_per_page'], $pStorageHash['cols_per_page'], $pStorageHash['thumbnail_size'], $pStorageHash['image_comment']); + $query = "INSERT INTO `".BIT_DB_PREFIX."fisheye_gallery` (`gallery_id`, `content_id`, `rows_per_page`, `cols_per_page`, `thumbnail_size`) VALUES (?,?,?,?,?)"; + $bindVars = array($this->mGalleryId, $this->mContentId, $pStorageHash['rows_per_page'], $pStorageHash['cols_per_page'], $pStorageHash['thumbnail_size']); } $rs = $this->mDb->query($query, $bindVars); $this->mDb->CompleteTrans(); |
