X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/cb8e3de960b758147b34d8323054e7de70548619..a4d1c5627c3958245ea7e2e573267e34f5872471:/WEB-INF/lib/form/UploadFile.class.php diff --git a/WEB-INF/lib/form/UploadFile.class.php b/WEB-INF/lib/form/UploadFile.class.php index 97a2a8ca..7e76d64c 100644 --- a/WEB-INF/lib/form/UploadFile.class.php +++ b/WEB-INF/lib/form/UploadFile.class.php @@ -29,7 +29,7 @@ import('form.FormElement'); class UploadFile extends FormElement { - var $cClassName = "UploadFile"; + var $class = 'UploadFile'; var $mMaxSize = 100000; // 100kb function __construct($name,$value="") @@ -41,10 +41,9 @@ class UploadFile extends FormElement { function setMaxSize($value) { $this->mMaxSize = $value; } function getMaxSize() { return $this->mMaxSize; } - function toStringControl() { - if (!$this->isRenderable()) return ""; - - if ($this->id=="") $this->id = $this->name; + function toStringControl() { + + if ($this->id=="") $this->id = $this->name; $html = "\n\tmMaxSize."\"/>"; $html .= "\n\t