summaryrefslogtreecommitdiff
path: root/extensions/ConfirmEdit/HTMLCaptchaField.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-04-26 18:23:31 +0200
committerPierre Schmitz <pierre@archlinux.de>2012-04-26 18:23:31 +0200
commitc4372dd38a4d109b4f3881ea63b667e33adbe503 (patch)
treee8e6dae1229a68c26b7a348c73dc0c8c77da97e5 /extensions/ConfirmEdit/HTMLCaptchaField.php
parentcf566324cfb218f0c7323d97d2a103bbb8d60ba4 (diff)
Update to MediaWiki 1.18.3
Diffstat (limited to 'extensions/ConfirmEdit/HTMLCaptchaField.php')
-rw-r--r--extensions/ConfirmEdit/HTMLCaptchaField.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/ConfirmEdit/HTMLCaptchaField.php b/extensions/ConfirmEdit/HTMLCaptchaField.php
index a458544c..6b1765d0 100644
--- a/extensions/ConfirmEdit/HTMLCaptchaField.php
+++ b/extensions/ConfirmEdit/HTMLCaptchaField.php
@@ -33,11 +33,11 @@ class HTMLCaptchaField extends HTMLFormField {
*/
private $validationResult;
- public function __construct( $params ){
+ public function __construct( $params ) {
parent::__construct( $params );
// For differentiating the type of form, mainly
- if( isset( $params['prefix'] ) ){
+ if ( isset( $params['prefix'] ) ) {
$this->prefix = $params['prefix'];
}
}
@@ -48,29 +48,29 @@ class HTMLCaptchaField extends HTMLFormField {
* @param $value String
* @return String
*/
- public function getInputHTML( $value ){
+ public function getInputHTML( $value ) {
# TODO
}
- public function validate( $data, $alldata ){
+ public function validate( $data, $alldata ) {
// We sent back the exists status of the captcha before. If it *doesn't* exist
// we actually want to validate this as true, because we don't want an angry red
// error message, just for the user to put the captcha in again
- if( $data === false ){
+ if ( $data === false ) {
return true;
}
-
+
}
/**
* @param $request WebRequest
* @return void
*/
- public function loadDataFromRequest( $request ){
+ public function loadDataFromRequest( $request ) {
$this->captcha = Captcha::factory();
$this->captcha->loadFromRequest( $request, $this );
- if( !$this->captcha->exists() ){
+ if ( !$this->captcha->exists() ) {
// The captcha doesn't exist; probably because it's already been used and
// then deleted for security. Load the field up with a new captcha which
// will be shown to the user when the validation of said new object fails