Index: trunk/phase3/includes/User.php |
— | — | @@ -643,14 +643,13 @@ |
644 | 644 | function getPasswordValidity( $password ) { |
645 | 645 | global $wgMinimalPasswordLength, $wgContLang; |
646 | 646 | |
647 | | - if(!$this->isValidPassword( $password )) { |
| 647 | + if ( !$this->isValidPassword( $password ) ) { |
648 | 648 | if( strlen( $password ) < $wgMinimalPasswordLength ) { |
649 | 649 | return 'passwordtooshort'; |
650 | | - } elseif( $wgContLang->lc( $password ) == $wgContLang->lc( $this->mName ) ) { |
| 650 | + } elseif ( $wgContLang->lc( $password ) == $wgContLang->lc( $this->mName ) ) { |
651 | 651 | return 'password-name-match'; |
652 | 652 | } |
653 | | - } |
654 | | - else { |
| 653 | + } else { |
655 | 654 | return true; |
656 | 655 | } |
657 | 656 | } |