Merge branch 'ticket-11210-imageVP' into develop
This commit is contained in:
commit
d8d9dcf9af
@ -953,6 +953,7 @@ class AdminPrivateSalesSales extends AdminTab {
|
|||||||
foreach(array_keys($this->imagelist) as $img) {
|
foreach(array_keys($this->imagelist) as $img) {
|
||||||
if((int)$language['id_lang'] == 3 && ($img == 'liston' || $img == 'listoff')
|
if((int)$language['id_lang'] == 3 && ($img == 'liston' || $img == 'listoff')
|
||||||
&& (!isset($_FILES['img_'.$img.'_'.$language['id_lang']]) || $_FILES['img_'.$img.'_'.$language['id_lang']]['name'] == '')
|
&& (!isset($_FILES['img_'.$img.'_'.$language['id_lang']]) || $_FILES['img_'.$img.'_'.$language['id_lang']]['name'] == '')
|
||||||
|
&& !file_exists(_PS_ROOT_DIR_.'/modules/privatesales/img/'.$sale->id.'/'.$img.'_'.$language['id_lang'].'.jpg')
|
||||||
&& (isset($_FILES['img_'.$img.'_2']) && $_FILES['img_'.$img.'_2']['name'] != '')
|
&& (isset($_FILES['img_'.$img.'_2']) && $_FILES['img_'.$img.'_2']['name'] != '')
|
||||||
) {
|
) {
|
||||||
if(!copy($_FILES['img_'.$img.'_2']['tmp_name'], _PS_ROOT_DIR_.'/modules/privatesales/img/'.$sale->id.'/'.$img.'_'.$language['id_lang'].'.jpg')) {
|
if(!copy($_FILES['img_'.$img.'_2']['tmp_name'], _PS_ROOT_DIR_.'/modules/privatesales/img/'.$sale->id.'/'.$img.'_'.$language['id_lang'].'.jpg')) {
|
||||||
@ -1029,6 +1030,7 @@ class AdminPrivateSalesSales extends AdminTab {
|
|||||||
foreach(array_keys($this->imagelist) as $img) {
|
foreach(array_keys($this->imagelist) as $img) {
|
||||||
if((int)$language['id_lang'] == 3 && ($img == 'liston' || $img == 'listoff')
|
if((int)$language['id_lang'] == 3 && ($img == 'liston' || $img == 'listoff')
|
||||||
&& (!isset($_FILES['img_'.$img.'_'.$language['id_lang']]) || $_FILES['img_'.$img.'_'.$language['id_lang']]['name'] == '')
|
&& (!isset($_FILES['img_'.$img.'_'.$language['id_lang']]) || $_FILES['img_'.$img.'_'.$language['id_lang']]['name'] == '')
|
||||||
|
&& !file_exists(_PS_ROOT_DIR_.'/modules/privatesales/img/'.$sale->id.'/'.$img.'_'.$language['id_lang'].'.jpg')
|
||||||
&& (isset($_FILES['img_'.$img.'_2']) && $_FILES['img_'.$img.'_2']['name'] != '')
|
&& (isset($_FILES['img_'.$img.'_2']) && $_FILES['img_'.$img.'_2']['name'] != '')
|
||||||
) {
|
) {
|
||||||
if(!copy($_FILES['img_'.$img.'_2']['tmp_name'], _PS_ROOT_DIR_.'/modules/privatesales/img/'.$sale->id.'/'.$img.'_'.$language['id_lang'].'.jpg')) {
|
if(!copy($_FILES['img_'.$img.'_2']['tmp_name'], _PS_ROOT_DIR_.'/modules/privatesales/img/'.$sale->id.'/'.$img.'_'.$language['id_lang'].'.jpg')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user