diff -r 000000000000 -r 4eba9c11703f web/Zend/View/Helper/FormFile.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/Zend/View/Helper/FormFile.php Mon Dec 13 18:29:26 2010 +0100 @@ -0,0 +1,81 @@ +_getInfo($name, null, $attribs); + extract($info); // name, id, value, attribs, options, listsep, disable + + // is it disabled? + $disabled = ''; + if ($disable) { + $disabled = ' disabled="disabled"'; + } + + // XHTML or HTML end tag? + $endTag = ' />'; + if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) { + $endTag= '>'; + } + + // build the element + $xhtml = '_htmlAttribs($attribs) + . $endTag; + + return $xhtml; + } +}