summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/models/item.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/models/item.php b/core/models/item.php
index 47fae0e7..a4d72fad 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -66,12 +66,8 @@ class Item_Model extends ORM_MPTT {
parent::move_to($target, true);
rename($original_path, $this->file_path());
- if (file_exists($original_resize_path)) {
- rename($original_resize_path, $this->resize_path());
- }
- if (file_exists($original_thumbnail_path)) {
- rename($original_thumbnail_path, $this->thumbnail_path());
- }
+ rename($original_resize_path, $this->resize_path());
+ rename($original_thumbnail_path, $this->thumbnail_path());
return $this;
}