summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ) {