Fix invisible file input

pull/3063/head
Julio 7 years ago
parent 594d2e73c8
commit 5bce37f11d
  1. 10
      main/inc/lib/pear/HTML/QuickForm/file.php

@ -364,10 +364,16 @@ class HTML_QuickForm_file extends HTML_QuickForm_input
$js = $this->getElementJS(array('ratio' => $ratio, 'scalable' => $scalable)); $js = $this->getElementJS(array('ratio' => $ratio, 'scalable' => $scalable));
} }
if ($this->_flagFrozen) { if ($this->isFrozen()) {
return $this->getFrozenHtml(); return $this->getFrozenHtml();
} else { } else {
return $js.$this->_getTabs() . '<input class="input-file" ' . $this->_getAttrString($this->_attributes) . ' />'; $class = '';
if (isset($this->_attributes['custom']) && $this->_attributes['custom']) {
$class = 'input-file';
}
return $js.$this->_getTabs().
'<input class="'.$class.'" '.$this->_getAttrString($this->_attributes).' />';
} }
} }

Loading…
Cancel
Save