* @return void
*/
- protected function prepare($args)
+ protected function prepare(array $args=array())
{
parent::prepare($args);
sprintf(_('Direct message to %s sent.'),
$this->other->nickname));
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('outbox',
array('nickname' => $this->scoped->nickname));
$this->elementStart('body');
$this->element('p', array('id' => 'error'), $msg);
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
function showForm($msg = null)