[-] BO : fixed small image duplication in carrier listing
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