X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/6e59f47d1baf9e3d420b4a368dcc005d54b6e599..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 98fbe0aa..7e76d64c 100644
--- a/WEB-INF/lib/form/UploadFile.class.php
+++ b/WEB-INF/lib/form/UploadFile.class.php
@@ -29,23 +29,21 @@
import('form.FormElement');
class UploadFile extends FormElement {
- var $mValue;
- var $cClassName = "UploadFile";
+ var $class = 'UploadFile';
var $mMaxSize = 100000; // 100kb
function __construct($name,$value="")
{
- $this->name = $name;
- $this->mValue = $value;
+ $this->name = $name;
+ $this->value = $value;
}
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