summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-10-31 14:36:04 -0400
committerEvan Prodromou <evan@status.net>2009-10-31 14:36:04 -0400
commit4e9ec0d0e1aeb43b432f4692b4819beb9408ad3b (patch)
treeb40cc8f0b4a621a37059c6416da40372a50d8f99 /actions
parent24c3a15124ab866bf7e9401f638156e102074608 (diff)
parentc637fe8cf07c22534e5227082ba81a12a8da3075 (diff)
merge from testing
Diffstat (limited to 'actions')
-rw-r--r--actions/newnotice.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index f677c49a9..fbd7ab6bc 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -192,7 +192,9 @@ class NewnoticeAction extends Action
common_broadcast_notice($notice);
if ($this->boolean('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, _('Notice posted'));
$this->elementEnd('head');