[-] 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
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user