]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/favorform.php
Merge branch '0.7.x' of git://gitorious.org/laconica/mgrdcm-twitapibools into review...
[quix0rs-gnu-social.git] / lib / favorform.php
index 4f4fd72a9dc4321dc76fc33d8df0fe5a3dac13d4..f3a7a97569019e0b635c4fdf1f1cf656826ff905 100644 (file)
@@ -88,7 +88,7 @@ class FavorForm extends Form
 
     function action()
     {
-        common_local_url('favor');
+        return common_local_url('favor');
     }
 
     /**
@@ -103,6 +103,18 @@ class FavorForm extends Form
                            common_session_token());
     }
 
+
+    /**
+     * Legend of the Form
+     *
+     * @return void
+     */
+    function formLegend()
+    {
+        $this->out->element('legend', null, _('Favor this notice'));
+    }
+
+
     /**
      * Data elements
      *
@@ -125,7 +137,7 @@ class FavorForm extends Form
     function formActions()
     {
         $this->out->submit('favor-submit-' . $this->notice->id,
-                           _('Make a favorite'));
+                           _('Favor'), 'submit', null, _('Favor this notice'));
     }
     
     /**
@@ -136,6 +148,6 @@ class FavorForm extends Form
     
     function formClass()
     {
-       return 'favor';
+        return 'form_favor';
     }
-}
\ No newline at end of file
+}