summaryrefslogtreecommitdiff
path: root/actions/newnotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-10-31 12:16:30 -0400
committerEvan Prodromou <evan@status.net>2009-10-31 12:16:30 -0400
commit5e27d53947ff64c8aee1b2287e1c77bbeaea51f7 (patch)
treebaf10735ebc98827820844e8ec9d616061ab645b /actions/newnotice.php
parent65a3ccd4587193bba72501837fab097e041f96d3 (diff)
parentdcca9fbec0cea9c5e15c4d58a8e9870514dfdbdd (diff)
Merge branch '0.8.x' into testing
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r--actions/newnotice.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php
index 8c0476f70..548832eca 100644
--- a/actions/newnotice.php
+++ b/actions/newnotice.php
@@ -271,7 +271,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');