function showNoticeForm()
{
- $message_form = new MessageForm($this);
+ $message_form = new MessageForm($this, $this->to, $this->content);
$message_form->show();
}
}
return common_local_url('newmessage');
}
-
/**
* Legend of the Form
*
$this->out->element('legend', null, _('Send a direct notice'));
}
-
/**
* Data elements
*
$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'));