Fix direct addressing of messages

This commit is contained in:
Evan Prodromou 2009-01-26 15:45:54 +01:00
parent a80a536e41
commit f3db32d151
2 changed files with 2 additions and 4 deletions

View File

@ -201,7 +201,7 @@ class NewmessageAction extends Action
function showNoticeForm()
{
$message_form = new MessageForm($this);
$message_form = new MessageForm($this, $this->to, $this->content);
$message_form->show();
}
}

View File

@ -99,7 +99,6 @@ class MessageForm extends Form
return common_local_url('newmessage');
}
/**
* Legend of the Form
*
@ -110,7 +109,6 @@ class MessageForm extends Form
$this->out->element('legend', null, _('Send a direct notice'));
}
/**
* Data elements
*
@ -137,7 +135,7 @@ class MessageForm extends Form
$this->out->elementStart('ul', 'form_data');
$this->out->elementStart('li', array('id' => 'notice_to'));
$this->out->dropdown('to', _('To'), $mutual, null, false,
$this->to->id);
($this->to) ? $this->to->id : null);
$this->out->elementEnd('li');
$this->out->elementStart('li', array('id' => 'notice_text'));