]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/QnA/forms/qnanewquestion.php
Merge branch 'master' of https://git.gnu.io/gnu/gnu-social into social-master
[quix0rs-gnu-social.git] / plugins / QnA / forms / qnanewquestion.php
index a1a2a94483a4fd6916957a1c95c4647569d7cf28..760c38905105542be66132cb5e843949dd032255 100644 (file)
@@ -56,7 +56,7 @@ class QnanewquestionForm extends Form
      *
      * @return void
      */
-    function __construct($out = null, $title = null, $description = null, $options = null)
+    function __construct($out = null, $title = null, $description = null, array $options = array())
     {
         parent::__construct($out);
         $this->title       = $title;
@@ -111,7 +111,8 @@ class QnanewquestionForm extends Form
             $this->title,
             // TRANS: Field title for a new question.
             _m('The title of your question.'),
-            'title'
+            'title',
+            true    // HTML5 "required" attribute
         );
         $this->unli();
         $this->li();
@@ -122,7 +123,8 @@ class QnanewquestionForm extends Form
             $this->description,
             // TRANS: Field title for question details.
             _m('Your question in detail.'),
-            'description'
+            'description',
+            true    // HTML5 "required" attribute
         );
         $this->unli();