Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / includes / api / ApiLogin.php
index 8f2e759..d7b3332 100644 (file)
@@ -107,7 +107,6 @@ class ApiLogin extends ApiBase {
                }
 
                $authRes = false;
-               $context = new DerivativeContext( $this->getContext() );
                $loginType = 'N/A';
 
                // Check login token
@@ -197,7 +196,7 @@ class ApiLogin extends ApiBase {
                                $injected_html = '';
                                Hooks::run( 'UserLoginComplete', [ &$user, &$injected_html, true ] );
 
-                               $result['lguserid'] = intval( $user->getId() );
+                               $result['lguserid'] = (int)$user->getId();
                                $result['lgusername'] = $user->getName();
                                break;