From: anuko Date: Mon, 6 Feb 2017 21:42:59 +0000 (+0000) Subject: A bit more refactoring. X-Git-Tag: timetracker_1.19-1~1585 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=aad5111d2e9f3329dc1002e897dd910a60946d6c;p=timetracker.git A bit more refactoring. --- diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index 4d6987f6..250f5313 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -38,7 +38,6 @@ class Form { var $name = ''; // TODO: refactoring ongoing down from here. - var $mEnctype = ""; var $mId = ""; var $error; var $debugFunction; @@ -252,16 +251,14 @@ class Form { $html .= ' method="post"'; - // for upload forms + // Add enctype for file upload forms. foreach ($this->mElements as $elname=>$el) { - if (strtolower(get_class($this->mElements[$elname]))=="uploadfile") { - $this->mEnctype = "multipart/form-data"; + if (strtolower(get_class($this->mElements[$elname])) == 'uploadfile') { + $html .= ' enctype="multipart/form-data"'; + break; } } - - if ($this->mEnctype!="") - $html .= " enctype=\"$this->mEnctype\""; - + $html .= ">"; return $html; } diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 94f4e541..78db2783 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.9.36.3568 | Copyright © Anuko | +  Anuko Time Tracker 1.9.36.3569 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}