· Remove duplicated global.
· Do not define a global in a switch.
Change-Id: I9b30d602ae86e0f0643d7788188efb3af367dec8
$is_signup = $request->getText( 'type' ) == 'signup';
# anonlogin & login are the same
- global $wgSecureLogin;
$proto = $wgSecureLogin ? PROTO_HTTPS : null;
$login_id = $this->showIPinHeader() ? 'anonlogin' : 'login';
}
function processLogin() {
- global $wgMemc, $wgLang;
+ global $wgMemc, $wgLang, $wgSecureLogin;
switch ( $this->authenticateUserData() ) {
case self::SUCCESS:
- global $wgSecureLogin;
# We've verified now, update the real record
$user = $this->getUser();
if( (bool)$this->mRemember != (bool)$user->getOption( 'rememberpassword' ) ) {