Compare commits

...

9 Commits

Author SHA1 Message Date
Christophe LATOUR
a199f1bed9 Merge branch 'fix/mktime' into local_christophe 2018-01-04 18:39:56 +01:00
Christophe LATOUR
7003069279 Merge branch 'master' of gitlab.antadis.net:dev-antadis/bebeboutik into local_christophe 2018-01-04 18:26:44 +01:00
Christophe LATOUR
076a2121ba fix :
- exception 'ErrorException' with message 'imagecreatefromjpeg(): Filename cannot be empty' in /Library/WebServer/Documents/bebeboutik/modules/privatesales_family_menu/privatesales_family_menu.php:176
- Because jpeg lib is not installed locally (flemme de ouf)
2017-12-15 13:01:55 +01:00
Christophe LATOUR
bbd1053b8d Merge branch 'master' of gitlab.antadis.net:dev-antadis/bebeboutik into local_christophe 2017-12-15 12:47:42 +01:00
Christophe LATOUR
ea5373856c Merge branch 'master' of gitlab.antadis.net:dev-antadis/bebeboutik into local_christophe 2017-12-06 10:51:48 +01:00
Christophe LATOUR
01ea701c80 Merge branch 'fix/500-order-getIfSended' into local_christophe 2017-12-05 12:02:06 +01:00
Christophe LATOUR
0f5aef0665 fix 500:
[Tue Dec 05 10:30:11.214323 2017] [:error] [pid 8149] [client 176.145.145.87:58320] exception 'ErrorException' with message 'Undefined variable: id_country' in /home/www/bebeboutik.com/www/override/classes/PaymentModule.php:252\nStack trace:\n#0 /home/www/bebeboutik.com/www/override/classes/PaymentModule.php(252): Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(8, 'Undefined varia...', '/home/www/bebeb...', 252, Array)\n#1 /home/www/bebeboutik.com/www/modules/paybox/paybox.php(428): PaymentModule->validateOrder(1772217, 2, 26.9, 'Paybox', '<b>Successful o...', Array, NULL, false, 'c38f95c9a167ab7...')
2017-12-05 10:55:04 +01:00
Christophe LATOUR
7e1e77a26c Merge branch 'master' of gitlab.antadis.net:dev-antadis/bebeboutik into local_christophe 2017-12-05 10:50:56 +01:00
Christophe LATOUR
8cf145f4ed modif for local 2017-12-05 10:50:47 +01:00
2 changed files with 5 additions and 5 deletions

View File

@ -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'],

View File

@ -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';