wiki.techinc.nl/includes/context
Derick Alangi 34f78a69ef specialpage: Fix login crash caused by unknown language via ?uselang
Per Krinkle's comments here: T198054#4598447, it's exactly what is
happening. @Fomafix suggests we handle the exception that is been
thrown by Language::factory() when there is an invalid language code
provided. The attempt is to fix this in the central way of ever request
whether POST or GET.

We're working within a particular context, and within this request
context, we can create a language user's language object then generate
a language object. If uselang parameter is provided an invalid language
code, getLanguage in this request context will default to $wgLanguageCode
then use this code to create the user's language object. In addition,
getLanguage() invalidates cached user interface language.

Bug: T198054
Change-Id: I825fdfa882a4243ffc63c9de0d7f482e2cfb9862
2019-01-29 16:16:02 +00:00
..
ContextSource.php Replace call_user_func_array(), part 1 2018-06-04 23:39:04 -07:00
DerivativeContext.php Replace some wfMessage by ContextSource::msg 2018-08-22 15:42:31 +02:00
IContextSource.php Improve 1-letter variable names in MutableContext and implementations 2018-01-07 15:53:55 +01:00
MutableContext.php Improve 1-letter variable names in MutableContext and implementations 2018-01-07 15:53:55 +01:00
RequestContext.php specialpage: Fix login crash caused by unknown language via ?uselang 2019-01-29 16:16:02 +00:00