]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newnotice.php
IE has some issue with notices that are sent with file attachments. It
[quix0rs-gnu-social.git] / actions / newnotice.php
index 8c0476f7057100e925d49bf0782158828adda59e..548832eca1abf69f282fefd7f3e4ad67a0c7ee6c 100644 (file)
@@ -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');