From 93116c51691c774e37a701e5ca1cf06e99014807 Mon Sep 17 00:00:00 2001 From: lsces Date: Fri, 8 May 2026 14:15:56 +0100 Subject: isLocked should not apply to fisheye objects but liberty generic handling hits it so we need to handle it --- includes/classes/FisheyeImage.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 ) { -- cgit v1.3