From b4894392cd78e437013069b8779db65233e7da9f Mon Sep 17 00:00:00 2001 From: David Date: Mon, 19 Feb 2018 10:57:58 +0100 Subject: [PATCH] Remaining png extensions in the code have been removed --- modules/landingpages/AdminLandingPages.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/landingpages/AdminLandingPages.php b/modules/landingpages/AdminLandingPages.php index 29105157..0c84f4fa 100755 --- a/modules/landingpages/AdminLandingPages.php +++ b/modules/landingpages/AdminLandingPages.php @@ -41,7 +41,7 @@ class AdminLandingPages extends AdminTab { } if(isset($_FILES['img2_'.$language['id_lang']]) && $_FILES['img2_'.$language['id_lang']]['name'] != '') { - if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.png')) { + if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.jpg')) { $this->_errors[] = $this->l('An error occured during the image upload.'); } } @@ -93,7 +93,7 @@ class AdminLandingPages extends AdminTab { } if(isset($_FILES['img2_'.$language['id_lang']]) && $_FILES['img2_'.$language['id_lang']]['name'] != '') { - if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.png')) { + if(!copy($_FILES['img2_'.$language['id_lang']]['tmp_name'], _PS_ROOT_DIR_.'/modules/landingpages/img/'.$id_landing_page.'_2_'.$language['id_lang'].'.jpg')) { $this->_errors[] = $this->l('An error occured during the image upload.'); } } @@ -359,9 +359,9 @@ class AdminLandingPages extends AdminTab { echo '

'.$this->l('Size:').' '.$this->l('img2 size').'

'; - if($this->curlp && file_exists(_PS_ROOT_DIR_.'/modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.png')) { + if($this->curlp && file_exists(_PS_ROOT_DIR_.'/modules/landingpages/img/'.$this->curlp['id_landing_page'].'_2_'.$language['id_lang'].'.jpg')) { echo '
-

'.$this->l('Preview').'

'; +

'.$this->l('Preview').'

'; } echo '
';