]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update. Added separate $title param for input submit
authorsarven <csarven@plantard.controlezvous.ca>
Sat, 17 Jan 2009 21:09:42 +0000 (21:09 +0000)
committersarven <csarven@plantard.controlezvous.ca>
Sat, 17 Jan 2009 21:09:42 +0000 (21:09 +0000)
lib/favorform.php
lib/htmloutputter.php

index 519b305b6fcffa59aed5df30537ccea4d4141eb2..37e13fb1c5b1883fe2c0292eac8768f09d8b0bd2 100644 (file)
@@ -137,7 +137,7 @@ class FavorForm extends Form
     function formActions()
     {
         $this->out->submit('favor-submit-' . $this->notice->id,
-                           _('Favor this notice'));
+                           _('Favor'), 'submit', null, _('Favor this notice'));
     }
     
     /**
index f83998bc278e3920ae75846f6de07aa936c299f1..1e164933ce0404adec94f0967bbf568440580a5d 100644 (file)
@@ -313,14 +313,14 @@ class HTMLOutputter extends XMLOutputter
      * @todo add a $name parameter
      */
 
-    function submit($id, $label, $cls='submit', $name=null)
+    function submit($id, $label, $cls='submit', $name=null, $title=null)
     {
         $this->element('input', array('type' => 'submit',
                                       'id' => $id,
                                       'name' => ($name) ? $name : $id,
                                       'class' => $cls,
                                       'value' => $label,
-                                      'title' => $label));
+                                      'title' => $title));
     }
 
     /**