]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/lib/qnashowanswerform.php
QnA
[quix0rs-gnu-social.git] / plugins / QnA / lib / qnashowanswerform.php
index 890224ed69178410bc085852e6d2a88660949e5b..665c40857f1c96bea3a47e89c31a6497062fe9cc 100644 (file)
@@ -46,14 +46,14 @@ require_once INSTALLDIR . '/lib/form.php';
 class QnashowanswerForm extends Form
 {
     /**
-     * The answer to revise
+     * The answer to show
      */
-    var $answer = null;
+    protected $answer   = null;
 
     /**
      * The question this is an answer to
      */
-    var $question = null;
+    protected $question = null;
 
     /**
      * Constructor
@@ -76,7 +76,7 @@ class QnashowanswerForm extends Form
      */
     function id()
     {
-        return 'revise-' . $this->answer->id;
+        return 'show-' . $this->answer->id;
     }
 
     /**
@@ -109,8 +109,8 @@ class QnashowanswerForm extends Form
      */
     function formLegend()
     {
-        // TRANS: Form legend for revising the answer.
-        $this->out->element('legend', null, _('Revise your answer'));
+        // TRANS: Form legend for showing the answer.
+        $this->out->element('legend', null, _('Answer'));
     }
 
     /**
@@ -122,10 +122,12 @@ class QnashowanswerForm extends Form
     {
         $this->out->hidden(
             'id',
-            'revise-' . $this->answer->id
+            'answer-' . $this->answer->id
         );
-        
-        $this->out->raw($this->answer->asHTML());
+
+
+
+        // $this->out->raw($this->answer->asHTML());
     }
 
     /**
@@ -184,6 +186,6 @@ class QnashowanswerForm extends Form
      */
     function formClass()
     {
-        return 'form_revise ajax';
+        return 'form_show ajax';
     }
 }