]> ToastFreeware Gitweb - toast/cookiecaptcha.git/blobdiff - QuestyCaptcha.class.php
Add required attribute to captcha answers per
[toast/cookiecaptcha.git] / QuestyCaptcha.class.php
index 478fcf3480729b628c8350f4bffbb7f096d3590f..635277af513c15a85416849fa7286218c1cbf6bd 100644 (file)
@@ -40,9 +40,10 @@ class QuestyCaptcha extends SimpleCaptcha {
                }
                $index = $this->storeCaptcha( $captcha );
                return "<p><label for=\"wpCaptchaWord\">{$captcha['question']}</label> " .
-                       Xml::element( 'input', array(
+                       Html::element( 'input', array(
                                'name' => 'wpCaptchaWord',
                                'id'   => 'wpCaptchaWord',
+                               'required',
                                'tabindex' => 1 ) ) . // tab in before the edit textarea
                        "</p>\n" .
                        Xml::element( 'input', array(