diff options
| author | Christian Fowler <spider@viovio.com> | 2010-06-03 03:49:29 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2010-06-03 03:49:29 +0000 |
| commit | 2825e3b018bedb6be9c16003545a74285be28a26 (patch) | |
| tree | ec8d1ec901912f8611ce583a78bb0c135b8035df | |
| parent | 69a3131967d5bd946367a2c6df89a0085aaf5933 (diff) | |
| download | fisheye-2825e3b018bedb6be9c16003545a74285be28a26.tar.gz fisheye-2825e3b018bedb6be9c16003545a74285be28a26.tar.bz2 fisheye-2825e3b018bedb6be9c16003545a74285be28a26.zip | |
pass details to storeDimensions, don't store on exportHtml
| -rw-r--r-- | FisheyeImage.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/FisheyeImage.php b/FisheyeImage.php index e4c0fca..a1889ba 100644 --- a/FisheyeImage.php +++ b/FisheyeImage.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeImage.php,v 1.116 2010/06/03 01:14:04 spiderr Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_fisheye/FisheyeImage.php,v 1.117 2010/06/03 03:49:29 spiderr Exp $ * @package fisheye */ @@ -144,13 +144,13 @@ class FisheyeImage extends FisheyeBase { return count($this->mInfo); } - function storeDimensions() { - if( $this->isValid() && $this->mInfo['width'] != $details['width'] || $this->mInfo['height'] != $details['height'] ) { + function storeDimensions( $pDetails ) { + if( $this->isValid() && $this->mInfo['width'] != $pDetails['width'] || $this->mInfo['height'] != $pDetails['height'] ) { // if our data got out of sync with the database, force an update $query = "UPDATE `".BIT_DB_PREFIX."fisheye_image` SET `width`=?, `height`=? WHERE `content_id`=?"; - $this->mDb->query( $query, array( $details['width'], $details['height'], $this->mContentId ) ); - $this->mInfo['width'] = $details['width']; - $this->mInfo['height'] = $details['height']; + $this->mDb->query( $query, array( $pDetails['width'], $pDetails['height'], $this->mContentId ) ); + $this->mInfo['width'] = $pDetails['width']; + $this->mInfo['height'] = $pDetails['height']; } } @@ -158,7 +158,6 @@ class FisheyeImage extends FisheyeBase { $ret = NULL; // make sure we have a valid image file. if( $this->isValid() && ($details = $this->getImageDetails() ) ) { - $this->storeDimensions(); $ret = array( 'type' => $this->getContentType(), 'landscape' => $this->isLandscape(), |
