A bit more refactoring.
authoranuko <support@anuko.com>
Mon, 6 Feb 2017 21:42:59 +0000 (21:42 +0000)
committeranuko <support@anuko.com>
Mon, 6 Feb 2017 21:42:59 +0000 (21:42 +0000)
WEB-INF/lib/form/Form.class.php
WEB-INF/templates/footer.tpl

index 4d6987f..250f531 100644 (file)
@@ -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;
     }
index 94f4e54..78db278 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.9.36.3568 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.9.36.3569 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>