mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 19:54:46 +01:00
LSformElement : use LSlog_logger
This commit is contained in:
parent
cc288cc391
commit
65a5825ce7
2 changed files with 4 additions and 4 deletions
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
LSsession :: loadLSclass('LSlog_staticLoggerClass');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Element d'un formulaire pour LdapSaisie
|
* Element d'un formulaire pour LdapSaisie
|
||||||
|
@ -29,7 +30,7 @@
|
||||||
* @author Benjamin Renard <brenard@easter-eggs.com>
|
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class LSformElement {
|
class LSformElement extends LSlog_staticLoggerClass {
|
||||||
|
|
||||||
var $name;
|
var $name;
|
||||||
var $label;
|
var $label;
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Element texte d'un formulaire pour LdapSaisie
|
* Element texte d'un formulaire pour LdapSaisie
|
||||||
*
|
*
|
||||||
|
@ -104,12 +103,12 @@ class LSformElement_image extends LSformElement {
|
||||||
$return[$this -> name][0] = $buf;
|
$return[$this -> name][0] = $buf;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
LSlog :: debug('LSformElement_image('.$this->name.')->getPostData(): uploaded tmp file not found => '.varDump($_FILES[$this -> name]));
|
self :: log_debug('LSformElement_image('.$this->name.')->getPostData(): uploaded tmp file not found => '.varDump($_FILES[$this -> name]));
|
||||||
$php_debug_params = array();
|
$php_debug_params = array();
|
||||||
foreach (array('file_uploads', 'upload_tmp_dir', 'upload_max_filesize', 'max_file_uploads', 'post_max_size', 'memory_limit') as $param)
|
foreach (array('file_uploads', 'upload_tmp_dir', 'upload_max_filesize', 'max_file_uploads', 'post_max_size', 'memory_limit') as $param)
|
||||||
$php_debug_params[] = "$param = '".ini_get($param)."'";
|
$php_debug_params[] = "$param = '".ini_get($param)."'";
|
||||||
$php_debug_params[] = "HTML form MAX_FILE_SIZE = '".MAX_SEND_FILE_SIZE."'";
|
$php_debug_params[] = "HTML form MAX_FILE_SIZE = '".MAX_SEND_FILE_SIZE."'";
|
||||||
LSlog :: debug('LSformElement_image('.$this->name.')->getPostData(): '.implode(', ', $php_debug_params));
|
self :: log_debug('LSformElement_image('.$this->name.')->getPostData(): '.implode(', ', $php_debug_params));
|
||||||
$this -> form -> setElementError($this -> attr_html, $this -> getFileUploadErrorMessage($_FILES[$this -> name]));
|
$this -> form -> setElementError($this -> attr_html, $this -> getFileUploadErrorMessage($_FILES[$this -> name]));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue