Why does wiki/includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php not use the language that the request was created in?
The following at lines 445-446
$userLanguage = $user->getOption( 'language' );
$subjectMessage = wfMessage( 'createaccount-title' )->inLanguage( $userLanguage );
but the request approved email is being issued in English only - the wiki's language.
I had a similar issue with the ConfirmAccount email requesting that the user confirm their email until I changed wiki\extensions\ConfirmAccount\includes\backend/ConfirmAccount.class.php
line 1141 to use
global $wgContLang, $wgLang;
and changed line 114
$lang = $user->getOption( 'language' );
to
$lang = $wgLang->getCode();
When I attempt a similar change in
wiki/includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php
I get no email at all, so I am likely introducing a fatal error. Why does
$user->getOption( 'language' );
not get the language that the request was created in?
Thanks in advance for any help on this