X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUserlogin.php;h=11744f629f59963d4b810e69fed4a79eac73244c;hb=51471be19e165d7f5275476dc4c118e6ca890e47;hp=64a6f7244ec87557d275e4ffdb4bc66c64552774;hpb=86b71af44aa6d0bd93ab9899137782b53a5ca459;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 64a6f7244e..11744f629f 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -453,8 +453,7 @@ class LoginForm extends SpecialPage { * @return Status */ public function addNewAccountInternal() { - global $wgAuth, $wgMemc, $wgAccountCreationThrottle, - $wgMinimalPasswordLength, $wgEmailConfirmToEdit; + global $wgAuth, $wgMemc, $wgAccountCreationThrottle, $wgEmailConfirmToEdit; // If the user passes an invalid domain, something is fishy if ( !$wgAuth->validDomain( $this->mDomain ) ) { @@ -1529,7 +1528,6 @@ class LoginForm extends SpecialPage { */ public static function getCreateaccountToken() { global $wgRequest; - return $wgRequest->getSessionData( 'wsCreateaccountToken' ); } @@ -1604,22 +1602,21 @@ class LoginForm extends SpecialPage { */ function makeLanguageSelector() { $msg = $this->msg( 'loginlanguagelinks' )->inContentLanguage(); - if ( !$msg->isBlank() ) { - $langs = explode( "\n", $msg->text() ); - $links = array(); - foreach ( $langs as $lang ) { - $lang = trim( $lang, '* ' ); - $parts = explode( '|', $lang ); - if ( count( $parts ) >= 2 ) { - $links[] = $this->makeLanguageSelectorLink( $parts[0], trim( $parts[1] ) ); - } - } - - return count( $links ) > 0 ? $this->msg( 'loginlanguagelabel' )->rawParams( - $this->getLanguage()->pipeList( $links ) )->escaped() : ''; - } else { + if ( $msg->isBlank() ) { return ''; } + $langs = explode( "\n", $msg->text() ); + $links = array(); + foreach ( $langs as $lang ) { + $lang = trim( $lang, '* ' ); + $parts = explode( '|', $lang ); + if ( count( $parts ) >= 2 ) { + $links[] = $this->makeLanguageSelectorLink( $parts[0], trim( $parts[1] ) ); + } + } + + return count( $links ) > 0 ? $this->msg( 'loginlanguagelabel' )->rawParams( + $this->getLanguage()->pipeList( $links ) )->escaped() : ''; } /**