]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/actions/qnanewanswer.php
QnA - Better ajax response when making a new answer. Still not right. Needs to use...
[quix0rs-gnu-social.git] / plugins / QnA / actions / qnanewanswer.php
index 94bfc09a39903da7d699ffe2b8a841870a25b0c1..0c4938e6a9b2b0de77c32402e3e2a0328277d338 100644 (file)
@@ -155,13 +155,39 @@ class QnanewanswerAction extends Action
             $answer = $this->question->getAnswer($profile);
             header('Content-Type: text/xml;charset=utf-8');
             $this->xw->startDocument('1.0', 'UTF-8');
+
             $this->elementStart('html');
             $this->elementStart('head');
             // TRANS: Page title after sending an answer.
             $this->element('title', null, _m('Answers'));
             $this->elementEnd('head');
+
             $this->elementStart('body');
-            $this->raw($answer->asHTML());
+
+            $nli = new NoticeListItem($notice, $this);
+            $nli->show();
+            //$this->raw($answer->asHTML());
+
+            /*
+            $question = $this->question;
+
+            $nli = new NoticeListItem($notice, $this);
+            $nli->showNotice();
+
+            $this->elementStart('div', array('class' => 'entry-content answer-content'));
+
+            if (!empty($answer)) {
+                $form = new QnashowanswerForm($this, $answer);
+                $form->show();
+            } else {
+                $this->text(_m('Answer data is missing.'));
+            }
+
+            $this->elementEnd('div');
+
+            // @fixme
+            //$this->elementStart('div', array('class' => 'entry-content'));
+            */
             $this->elementEnd('body');
             $this->elementEnd('html');
         } else {