summaryrefslogtreecommitdiff
path: root/actions/newmessage.php
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-11-01 10:42:28 +0000
committerSarven Capadisli <csarven@status.net>2009-11-01 10:42:28 +0000
commitf3287bd113fdfd2a37429519d514db26441a4865 (patch)
tree1f1835a1aaf9cc3f12a1b929223d0cd04cea978c /actions/newmessage.php
parentd6b31d42c7e315d18d40ed6ad30f7d90feeba341 (diff)
Updated XHR output to match newnotice
Diffstat (limited to 'actions/newmessage.php')
-rw-r--r--actions/newmessage.php9
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();
}