summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-05-08 14:15:56 +0100
committerlsces <lester@lsces.co.uk>2026-05-08 14:15:56 +0100
commit93116c51691c774e37a701e5ca1cf06e99014807 (patch)
tree7ca1432ad542d126334c60e1620aee8902acee12
parentb1c482d13d7491e93400c24feb26aa28ae292ad3 (diff)
downloadfisheye-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-xincludes/classes/FisheyeImage.php11
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 ) {