]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Updated XHR output to match newnotice
authorSarven Capadisli <csarven@status.net>
Sun, 1 Nov 2009 10:42:28 +0000 (10:42 +0000)
committerSarven Capadisli <csarven@status.net>
Sun, 1 Nov 2009 10:42:28 +0000 (10:42 +0000)
actions/newmessage.php

index 37fca1ca2b8b34ff9a06ece73ef3394fb463cda4..095a7d1d34bed2685ebff113064a2decf5853020 100644 (file)
@@ -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();
         }