summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/models/item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/models/item.php b/core/models/item.php
index 8898e923..329f9c43 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -100,9 +100,9 @@ class Item_Model extends ORM_MPTT {
// If there is no name, the path is invalid so don't try to delete
if (!empty($this->name)) {
if ($this->is_album()) {
- dir::unlink(dirname($original_path));
- dir::unlink(dirname($original_resize_path));
- dir::unlink(dirname($original_thumb_path));
+ dir::unlink($original_path);
+ dir::unlink($original_resize_path);
+ dir::unlink($original_thumb_path);
} else {
unlink($original_path);
unlink($original_resize_path);