summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-16 23:59:33 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-16 23:59:33 +0000
commitf4c6a20149eceae01d2085264f7facf516fd6bb8 (patch)
treefb8c411a468131ad4162193d0dd7bfdb918abdc8 /core
parentaf32e5708db12c91c02616c363d8bb4201a66fa7 (diff)
Remove error checking; if this fails let it fail noisily for now so that we can find problems faster.
Diffstat (limited to 'core')
-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;
}