]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newnotice.php
merge from testing
[quix0rs-gnu-social.git] / actions / newnotice.php
index f677c49a96fc4de2fa160ecf5ad613dabbcd9dba..fbd7ab6bce9c25da6514ed75ba476c44646edda0 100644 (file)
@@ -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');