form mail sans champ file et android
This commit is contained in:
parent
ab43bd4df7
commit
7e8df15a23
|
@ -103,8 +103,7 @@
|
|||
<?php
|
||||
if($this->getData(['module', $this->getUrl(0), 'config', 'signature' ]) === 'logo' && is_file( 'site/file/source/'. $this->getData(['module', $this->getUrl(0), 'config', 'logoUrl' ]))){
|
||||
$imageFile = helper::baseUrl(false).'site/file/source/'. $this->getData(['module', $this->getUrl(0), 'config', 'logoUrl' ]) ;
|
||||
$imageBase64 = base64_encode(file_get_contents($imageFile));
|
||||
?><img src=" data:image/<?php echo pathinfo($imageFile, PATHINFO_EXTENSION); ?>;base64,<?php echo $imageBase64; ?>" border="0" width="<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'logoWidth']) ?>%" >
|
||||
?><img src="<?php echo $imageFile; ?>" border="0" alt="logo" width="<?php echo $this->getData(['module', $this->getUrl(0), 'config', 'logoWidth']) ?>%" >
|
||||
<?php
|
||||
}
|
||||
else{
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
class form extends common {
|
||||
|
||||
const VERSION = '4.5';
|
||||
const VERSION = '4.6';
|
||||
const REALNAME = 'Formulaire';
|
||||
const DELETE = true;
|
||||
const UPDATE = '0.0';
|
||||
|
@ -85,8 +85,8 @@ class form extends common {
|
|||
$this->setData(['module', $this->getUrl(0), 'config', 'uploadTxt',false]);
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData','4.1']);
|
||||
}
|
||||
if( version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '4.5', '<') ){
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData', '4.5']);
|
||||
if( version_compare($this->getData(['module', $this->getUrl(0), 'config', 'versionData']), '4.6', '<') ){
|
||||
$this->setData(['module', $this->getUrl(0), 'config', 'versionData', '4.6']);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -375,6 +375,7 @@ class form extends common {
|
|||
$data = [];
|
||||
$replyTo = null;
|
||||
$content = '';
|
||||
$file_name = '';
|
||||
// $notice concerne la pièce jointe et le captcha
|
||||
$notice = '';
|
||||
foreach($this->getData(['module', $this->getUrl(0), 'input']) as $index => $input) {
|
||||
|
|
Loading…
Reference in New Issue