diff --git a/modules/landingpages/AdminLandingPages.php b/modules/landingpages/AdminLandingPages.php index 51db667a..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.'); } } @@ -343,7 +343,8 @@ class AdminLandingPages extends AdminTab {

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

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

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

'; + echo '
+

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

'; } echo ' '; @@ -352,14 +353,15 @@ class AdminLandingPages extends AdminTab { echo '
'; - echo ' -