diff options
| author | lsces <lester@lsces.co.uk> | 2026-05-08 14:15:56 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-05-08 14:15:56 +0100 |
| commit | 93116c51691c774e37a701e5ca1cf06e99014807 (patch) | |
| tree | 7ca1432ad542d126334c60e1620aee8902acee12 | |
| parent | b1c482d13d7491e93400c24feb26aa28ae292ad3 (diff) | |
| download | fisheye-93116c51691c774e37a701e5ca1cf06e99014807.tar.gz fisheye-93116c51691c774e37a701e5ca1cf06e99014807.tar.bz2 fisheye-93116c51691c774e37a701e5ca1cf06e99014807.zip | |
isLocked should not apply to fisheye objects but liberty generic handling hits it so we need to handle it
| -rwxr-xr-x | includes/classes/FisheyeImage.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/includes/classes/FisheyeImage.php b/includes/classes/FisheyeImage.php index d4d77ca..d367d15 100755 --- a/includes/classes/FisheyeImage.php +++ b/includes/classes/FisheyeImage.php @@ -772,6 +772,17 @@ class FisheyeImage extends FisheyeBase { return @$this->verifyId( $this->mImageId ) || @$this->verifyId( $this->mContentId ); } + public function isLocked(): bool { + $ret = false; + if( $this->verifyId( $this->mImageId ) ) { + if( empty( $this->mInfo ) ) { + $this->load(); + } + $ret = $this->getField( 'flag', false ); + } + return $ret; + } + public function imageExistsInDatabase() { $ret = false; if( $this->isValid() && $this->mImageId ) { |
