We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 91475ca3 authored by sarven's avatar sarven

Update. Added separate $title param for input submit

parent 5a81b6d0
......@@ -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'));
}
/**
......
......@@ -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));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment