Julio 6 лет назад
Родитель
Сommit
5bce37f11d
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      main/inc/lib/pear/HTML/QuickForm/file.php

+ 8 - 2
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).' />';
         }
         }
     }
     }