fixed file upload

This commit is contained in:
Roland Gruber 2018-08-28 21:15:51 +02:00
parent f0b3b548de
commit abceebdc4b
1 changed files with 9 additions and 1 deletions

View File

@ -3988,6 +3988,8 @@ class htmlResponsiveInputFileUpload extends htmlInputFileUpload {
private $label;
/** help ID */
private $helpID;
/** help module */
private $helpModule = null;
/** render HTML of parent class */
private $renderParentHtml = false;
@ -4001,7 +4003,13 @@ class htmlResponsiveInputFileUpload extends htmlInputFileUpload {
function __construct($name, $label, $helpID = null) {
parent::__construct($name);
$this->label = htmlspecialchars($label);
$this->helpID = $helpID;
if (is_string($helpID)) {
$this->helpID = $helpID;
}
elseif (is_array($helpID)) {
$this->helpID = $helpID[0];
$this->helpModule = $helpID[1];
}
}
/**