diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-26 17:10:13 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-26 17:10:13 +0000 |
| commit | 707e860b6cca2d2db7b3cfcfa41959d639cdf8b7 (patch) | |
| tree | 7a9e8630b41a9ad668ada7f4ebfe124001782910 /includes | |
| parent | 5245cdcff43e01937278b80d2ee4d3a5c4fc0d81 (diff) | |
| download | fisheye-707e860b6cca2d2db7b3cfcfa41959d639cdf8b7.tar.gz fisheye-707e860b6cca2d2db7b3cfcfa41959d639cdf8b7.tar.bz2 fisheye-707e860b6cca2d2db7b3cfcfa41959d639cdf8b7.zip | |
Namespace corrections
Diffstat (limited to 'includes')
| -rwxr-xr-x | includes/classes/FisheyeBase.php | 2 | ||||
| -rwxr-xr-x | includes/classes/FisheyeGallery.php | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/includes/classes/FisheyeBase.php b/includes/classes/FisheyeBase.php index a2d45da..3cca1bd 100755 --- a/includes/classes/FisheyeBase.php +++ b/includes/classes/FisheyeBase.php @@ -198,7 +198,7 @@ not ready for primetime } } - if( $this->isValid() && $pIncludeSelf && is_a( $this, 'FisheyeGallery' ) ) { + if( $this->isValid() && $pIncludeSelf && is_a( $this, '\Bitweaver\Fisheye\FisheyeGallery' ) ) { $ret[$this->mGalleryId] = $this->getTitle(); } diff --git a/includes/classes/FisheyeGallery.php b/includes/classes/FisheyeGallery.php index b96cd74..79ffbef 100755 --- a/includes/classes/FisheyeGallery.php +++ b/includes/classes/FisheyeGallery.php @@ -479,7 +479,7 @@ class FisheyeGallery extends FisheyeBase { if( @$this->verifyId( $pThumbnailContentId ) ) { $ret = parent::getLibertyObject( $pThumbnailContentId, $pThumbnailContentType, $this->isCacheableObject() ); - if( is_a( $ret, 'FisheyeGallery' ) ) { + if( is_a( $ret, '\Bitweaver\Fisheye\FisheyeGallery' ) ) { //recurse down in to find the first image if( $ret = $ret->getThumbnailImage() ) { $this->mInfo['thumbnail_content_id'] = $ret->getField( 'content_id' ); @@ -585,7 +585,7 @@ class FisheyeGallery extends FisheyeBase { // if( !empty($pRecursiveDelete) ) { // $this->mItems[$key]->expunge( $pRecursiveDelete ); // } else - if( is_a( $this->mItems[$key], 'FisheyeImage' ) ) { + if( is_a( $this->mItems[$key], '\Bitweaver\Fisheye\FisheyeGallery' ) ) { // make sure we have a valid content_id before we exec if( is_numeric( $this->mItems[$key]->mContentId ) ) { $query = "SELECT COUNT(`item_content_id`) AS `other_gallery` @@ -819,7 +819,7 @@ class FisheyeGallery extends FisheyeBase { FisheyeGallery::getTreeSort( $pTree[$k]['children'] ); } } - uasort( $pTree, [ 'FisheyeGallery', 'getTreeSortCmp' ] ); + uasort( $pTree, [ '\Bitweaver\Fisheye\FisheyeGallery', 'getTreeSortCmp' ] ); } } @@ -1115,11 +1115,11 @@ function addGalleryRecursive( $pGalleryId, &$pZip, $pPath = '/' ){ $gallery->loadImages(); $pPath .= $gallery->getTitle().'/'; foreach ( $gallery->mItems as $item ){ - if( is_a( $item , 'FisheyeImage' ) ){ + if( is_a( $item , '\Bitweaver\Fisheye\FisheyeImage' ) ){ $sourcePath = $item->getSourceFile(); $title = $item->getTitle(); $pZip->addFile($sourcePath, $pPath.$title.substr($sourcePath,strrpos($sourcePath,'.')) ); - } elseif ( is_a( $item , 'FisheyeGallery' ) ) { + } elseif ( is_a( $item , '\Bitweaver\Fisheye\FisheyeGallery' ) ) { addGalleryRecursive( $item->mGalleryId, $pZip ,$pPath ); } } |
