From: Sarven Capadisli Date: Sun, 1 Nov 2009 10:42:28 +0000 (+0000) Subject: Updated XHR output to match newnotice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f3287bd113fdfd2a37429519d514db26441a4865;p=quix0rs-gnu-social.git Updated XHR output to match newnotice --- diff --git a/actions/newmessage.php b/actions/newmessage.php index 37fca1ca2b..095a7d1d34 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(); }