Set lang in api createaccount regardless of $wgLoginLanguageSelector
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 9 Mar 2013 10:57:07 +0000 (06:57 -0400)
committerBrian Wolff <bawolff+wn@gmail.com>
Wed, 27 Mar 2013 11:41:20 +0000 (08:41 -0300)
commit6e8be422daafef68cb6adb4f7a6507959cdedc0f
tree60ae0bd6513f307552995b6d9d7d5e9bda63803d
parentcd2eb4e113d9269b4a0200c9ac0618023fa10dcb
Set lang in api createaccount regardless of $wgLoginLanguageSelector

$wgLoginLanguageSelector is related to how the interface of
special:userlogin works. It doesn't make sense to listen to it
in the api module

Also throw error if invalid lang code is specified (for sanity)

Change-Id: Ibf72fd5a318cadc450b3b579757ee8145864a27a
includes/api/ApiCreateAccount.php