This commit is contained in:
Shish 2024-01-15 18:54:46 +00:00
parent b872c021e1
commit c1bc63e86b

View file

@ -551,7 +551,8 @@ class Image implements \ArrayAccess
global $database;
if ($locked !== $this->locked) {
$database->execute("UPDATE images SET locked=:yn WHERE id=:id", ["yn" => $locked, "id" => $this->id]);
log_info("core_image", "Setting Post #{$this->id} lock to: $locked");
$s = $locked ? "locked" : "unlocked";
log_info("core_image", "Setting Post #{$this->id} to $s");
}
}