diff options
author | Sarven Capadisli <csarven@status.net> | 2009-11-01 21:19:11 +0100 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2009-11-01 21:19:11 +0100 |
commit | 01dd745a9c7c370026a52a412525dd0daf6b441a (patch) | |
tree | 3c25fc0eb509f3417ab68cd05cad3dabd7737bcb | |
parent | b1367ae8da8e67686f38c99b66c25fa049dbfba3 (diff) | |
parent | f3287bd113fdfd2a37429519d514db26441a4865 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
-rw-r--r-- | actions/newmessage.php | 9 |
1 files 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(); } |