Update and rename Photo/Video Delete to CatalogDelete

This commit is contained in:
2024-10-01 00:01:33 +10:00
parent 7742b4289d
commit 5b1b6a3fd2
5 changed files with 70 additions and 127 deletions

View File

@@ -416,7 +416,7 @@ abstract class Catalog extends Model
// Test if the target dir is writable
// @todo The target dir may not exist yet, so we should check that a parent exists and is writable.
$this->move_reason = 'Target parent dir doesnt is not writable';
if (! $this->isParentWritable(dirname($this->file_name(FALSE))))
if (! $this->isParentWritable(dirname($this->file_name(TRUE))))
return FALSE;
// Otherwise we can move it