protected $securityLevel;
/** @var bool True if the user if creating an account for someone else. Flag used for internal
- * communication, only set at the very end. */
+ * communication, only set at the very end.
+ */
protected $proxyAccountCreation;
/** @var User FIXME another flag for passing data. */
protected $targetUser;
/**
* @param string|null $subPage
+ * @suppress PhanTypeObjectUnsetDeclaredProperty
*/
public function execute( $subPage ) {
if ( $this->mPosted ) {
$wgUser = $user;
$context->setUser( $user );
- $code = $this->getRequest()->getVal( 'uselang', $user->getOption( 'language' ) );
- $userLang = Language::factory( $code );
- $wgLang = $userLang;
- $context->setLanguage( $userLang );
+ $wgLang = $context->getLanguage();
}
/**