From f3287bd113fdfd2a37429519d514db26441a4865 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Sun, 1 Nov 2009 10:42:28 +0000 Subject: Updated XHR output to match newnotice --- actions/newmessage.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/actions/newmessage.php b/actions/newmessage.php index 37fca1ca2..095a7d1d3 100644 --- a/actions/newmessage.php +++ b/actions/newmessage.php @@ -224,15 +224,14 @@ class NewmessageAction extends Action $this->msg = $msg; if ($this->trimmed('ajax')) { - $this->startHTML('text/xml;charset=UTF-8'); + header('Content-Type: text/xml;charset=utf-8'); + $this->xw->startDocument('1.0', 'UTF-8'); + $this->elementStart('html'); $this->elementStart('head'); $this->element('title', null, _('New message')); $this->elementEnd('head'); $this->elementStart('body'); - if (common_logged_in()) { - $this->showNoticeForm(); - } - $this->elementEnd('div'); + $this->showNoticeForm(); $this->elementEnd('body'); $this->endHTML(); } -- cgit v1.2.3-54-g00ecf