From f4c6a20149eceae01d2085264f7facf516fd6bb8 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 16 Dec 2008 23:59:33 +0000 Subject: Remove error checking; if this fails let it fail noisily for now so that we can find problems faster. --- core/models/item.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'core') 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; } -- cgit v1.2.3