Adding wfLogWarning for production warnings.

Currently, trigger_error() is used to report non-fatal problems in 
production. It seems more consistent to have our own function to do 
that, with behavior consistent with wfWarn().

Change-Id: I531b7ceec089978c2832721486f277fdfca65270
adding test cases for bug 42353, code will be submitted in a separate review for Parsoid

Change-Id: I79f51608d70ce70570ccabd7ecfba75e7852a897
(Bug 23472) Removed undesirable space after external link url in printout

Change-Id: I76359866019b8bb5442f973b1daf95ae989779fb
Clarified FileBackend::doOperations() docs a bit more.

Change-Id: Ie0b131c1a09bc75be39bbb7e9c87b8d3221a0fc5
mw.loader: Guard against odd setTimeout behaviour in old Firefox

Bug: 46575
Change-Id: I80af730daa815f0c273fe942c570d1f0144bbbb1
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
Removed deprecated usage of 2nd param in Title::getLocalUrl in SpecialAllpages

Before this change-set, a deprecated warning has been thrown when SpecialAllpges::showline would
be called with the last parameter ($hideredirect) set to false.

Change-Id: I4072a4a19a8f6403f3979c731974baba88ab574a
Update code formatting

Used PHPStorm's code formatting feature, with manual checks and updates.

Change-Id: I0496eba007056bc9c4b09163387f11d6cea2a55d
Update code formatting

Also update some previous inconsistencies pointed out by Krinkle in change IDs:
* Ide20743a2e84ff68549286120e6cff9d9f396f54
* I811ca957b6588085d67606ebc0cd4033a1e53839

Change-Id: Ife33b931870d0d7e04fcb40974997436d27f528f
Fix case of some Title methods

Change-Id: I37ce7fe392f4941c500fa0a88007664501d7e338
Add RL targets support to OutputPage

The target URI parameter is already used by ResourceLoaderStartUpModule
to filter modules, this change introduces the ability to produce
mobile-aware load.php links in the core and filter out modules not suitable
for current target.

Change-Id: Ie03990e11d9a0ac8cd81dd0aae5c5a95f1d23e81
CoreParserFunctions::anchorencode should return a string

CoreParserFunctions::anchorencode incorrectly returns false rather than
the empty string when passed an empty string.

A simple cast fixes it; this likely wasn't noticed before since PHP was
automatically doing the cast anyway when the return value was merged
into wikitext.

Bug: 46608
Change-Id: I97556dbc4dcc1f102f6fed499d43dada388cdc5d
Merge "CoreParserFunctions::anchorencode should return a string"
Handle protocol-relative URLs in WebRequest::getRequestURL.

Multiple slashes at the start of the request url will look like a
protocol-relative url, so strip the extra slashes.

Bug: 46607
Change-Id: I34c3fc9d8f9467e83cd201cb099c2d26f3a39b36
Merge "Handle protocol-relative URLs in WebRequest::getRequestURL."
Merge "mw.loader: Guard against odd setTimeout behaviour in old Firefox"
Made sure MediaTransformOutput::getLocalCopyPath handles storage paths.

* Storage paths are passed in for several cases in File::transform().

Change-Id: I61a4058b80a37f36b78e2dfe62ffdf6f73e6f41e
Localisation updates from http://translatewiki.net.

Change-Id: Ibfa55e01c4db12c5f0f2db0e862780d96462afdc
Merge "Clarified FileBackend::doOperations() docs a bit more."
(bug 46615) updateCollation.php: sanity check the collation before proceeding

Change-Id: I5be1b1ec1823fdb7438c3f501fb6194142c1e9dc