]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/form.php
fix hungry match for group name
[quix0rs-gnu-social.git] / lib / form.php
index 5c75bb65fa20747a80aeda4f748fda7475ae990c..011d4bfc9b9b440a9dde51cb5cd55f54eb05d035 100644 (file)
@@ -65,7 +65,8 @@ class Form extends Widget
     {
         $this->out->elementStart('form',
                                  array('id' => $this->id(),
-                                       'method' => 'POST',
+                                      'class' => $this->formClass(),
+                                       'method' => 'post',
                                        'action' => $this->action()));
         $this->out->elementStart('fieldset');
         $this->formLegend();
@@ -153,4 +154,15 @@ class Form extends Widget
     function action()
     {
     }
+    
+    /**
+     * Class of the form.
+     *
+     * @return string the form's class
+     */
+
+    function formClass()
+    {
+       return 'form';
+    }
 }