Compare commits
9 Commits
master
...
local_chri
Author | SHA1 | Date | |
---|---|---|---|
|
a199f1bed9 | ||
|
7003069279 | ||
|
076a2121ba | ||
|
bbd1053b8d | ||
|
ea5373856c | ||
|
01ea701c80 | ||
|
0f5aef0665 | ||
|
7e1e77a26c | ||
|
8cf145f4ed |
@ -370,7 +370,7 @@ class Sale {
|
||||
'pub' => $ps[0]['public'],
|
||||
'new' => $ps[0]['new'],
|
||||
'braderie' => $ps[0]['braderie'],
|
||||
'uncombinable' => $ps[0]['uncombinable'],
|
||||
'uncombinable' => isset($ps[0]['uncombinable']) ? $ps[0]['uncombinable'] : '',
|
||||
'forward_news' => $ps[0]['forward_news'],
|
||||
'position' => $ps[0]['position'],
|
||||
'lock_position' => $ps[0]['lock_position'],
|
||||
|
@ -172,10 +172,10 @@ class Privatesales_Family_Menu extends Module {
|
||||
}
|
||||
|
||||
// create new format image
|
||||
$image_menu = imagecreatetruecolor(260, 211);
|
||||
$image_cat = imagecreatefromjpeg($img_tmp);
|
||||
imagecopyresampled($image_menu, $image_cat, 0, 0, 0, 0, 260, 211, 260, 211);
|
||||
imagejpeg($image_menu, _PS_ROOT_DIR_.'/img/menu/'.$sale['id_category'].'.jpg',100);
|
||||
// $image_menu = imagecreatetruecolor(260, 211);
|
||||
// $image_cat = imagecreatefromjpeg($img_tmp);
|
||||
// imagecopyresampled($image_menu, $image_cat, 0, 0, 0, 0, 260, 211, 260, 211);
|
||||
// imagejpeg($image_menu, _PS_ROOT_DIR_.'/img/menu/'.$sale['id_category'].'.jpg',100);
|
||||
}
|
||||
|
||||
$sales[$key_sale]['img'] = '/img/menu/'.$sale['id_category'].'.jpg';
|
||||
|
Loading…
Reference in New Issue
Block a user