From 21e8fabafb0bc47154da0db114deabd8dd3bf5e6 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 13 Feb 2012 13:08:06 +0000 Subject: [PATCH] [-] BO : fixed small image duplication in carrier listing git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13252 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Carrier.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/Carrier.php b/classes/Carrier.php index 56f24c079..8531ed449 100644 --- a/classes/Carrier.php +++ b/classes/Carrier.php @@ -745,7 +745,11 @@ class CarrierCore extends ObjectModel $old_logo = _PS_SHIP_IMG_DIR_.'/'.(int)$old_id.'.jpg'; if (file_exists($old_logo)) - copy($old_logo, _PS_SHIP_IMG_DIR_.'/'.$this->id.'.jpg'); + copy($old_logo, _PS_SHIP_IMG_DIR_.'/'.(int)$this->id.'.jpg'); + + $old_tmp_logo = _PS_TMP_IMG_DIR_.'/carrier_mini_'.(int)$old_id.'.jpg'; + if (file_exists($old_tmp_logo)) + copy($old_tmp_logo, _PS_TMP_IMG_DIR_.'/carrier_mini_'.$this->id.'.jpg'); // Copy existing ranges price foreach (array('range_price', 'range_weight') as $range)