Merge "Trim trailing whitespace"
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 22 Mar 2012 00:20:21 +0000 (00:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 22 Mar 2012 00:20:21 +0000 (00:20 +0000)
includes/HTMLForm.php

index 3b3e1b6..dccf967 100644 (file)
@@ -271,7 +271,7 @@ class HTMLForm extends ContextSource {
 
        /**
         * The here's-one-I-made-earlier option: do the submission if
-        * posted, or display the form with or without funky valiation
+        * posted, or display the form with or without funky validation
         * errors
         * @return Bool or Status whether submission was successful.
         */
@@ -279,7 +279,7 @@ class HTMLForm extends ContextSource {
                $this->prepareForm();
 
                $result = $this->tryAuthorizedSubmit();
-               if ( $result === true || ( $result instanceof Status && $result->isGood() ) ){
+               if ( $result === true || ( $result instanceof Status && $result->isGood() ) ) {
                        return $result;
                }