Eliminate dummy Language instances from being created

By checking the code against $wgDummyLanguageCodes we can
get rid of checking it on a case-by-case basis.

It's only a suggestion (I don't know if it can break anything),
and Amir Aharoni said that big changes are coming (Bug 41103).

In private case, this change fixes Bug 27571 and maybe some other
language fallback related issues.

Change-Id: I5212beabd5cc212b50ee98b5b53ec01b20ffd0c3
fixed timestamp validation for api

wfTimestamp returns false on failure.

Renamed variable to output original input on failure and not the false

Change-Id: I39d31f35dae88b8a6e50ebee76a3be8722603ef3
Add "modifyExtensionField" utility function

As calling $updater->modifyField will do the action immediately (not queued),
this may be undesired.

So this is a shortcut/utility function like addExtensionField/addExtensionTable etc,
instead of the developer calling addExtensionUpdate( array() ) themselves.

Change-Id: Ie94f2b42679062c6e106ae560faab26818a9b15c
Use ResultWrapper::numRows() instead of DatabaseBase::numRows()

Change-Id: I87f059aaff72bf06ebc72ad3a7904cca8e11fab9
(bug 43052) dblClickEdit/rightClickEdit: Trigger ca-edit click.

To test, enable these preferences under "Editing":
* Enable section editing by right clicking on section titles
* Edit pages on double click

Change-Id: Ie8a35700bc9e74b24f234ea682ad25375e18bda4
Removed useless keys() function from BagOStuff.

Change-Id: Ie4249b2770de81377019ad383039ab85c0c5de7a
Overriding Vector's footer margin when in print mode

Otherwise the footer is strangely shifted 10 or 11em to the right
on printed versions of pages (exact amount depends on media mode)

Change-Id: Ia2123b08bdf1910304c1e1436418a3eb75126a07
Added merge() function to BagOStuff for CAS-like functionality.

* merge() will use CAS if supported or use locking otherwise
* The lock()/unlock() methods now have a default implementation
* added unit tests for merge

Change-Id: Ic27088488f8532f149cb4b36e156516f22880134
Merge "Added merge() function to BagOStuff for CAS-like functionality."
Fix access to other wiki's job queue.

LoadBalancer::getConnection needs the target wiki's ID, even
if we got the LoadBalancer instance specifically for that wiki.

Change-Id: I3fc81666dfa2552fac3ced2cadbd3f6db09e9596
(bug 43820) Content also needed for prop=revisions&rvdiffto=

It was somehow overlooked that prop=revisions&rvdiffto= also requires
that the content for the current revision be fetched.

Change-Id: Ie1d718458da8cdb6ba63bd7ea512db3b299fc1e2
ignore /.deploy used by git-deploy

git-deploy writes a status file at the root of the working copy. We want
to always ignore it.

Change-Id: I4dbbce669ba4d194c3ce5568733bd27db51fd40e
Merge "ignore /.deploy used by git-deploy"
Add css $classes variable to the OldChangesListRecentChangesLine hook

- will update LiquidThreads accordingly and do not see
this hook used in any other extension in Wikimedia git repos.

Change-Id: Ib8f297b39dbd5fba980bb0d4773d0e01f2b922f4
Merge "Add css $classes variable to the OldChangesListRecentChangesLine hook"
Merge "Fix access to other wiki's job queue."
[JobQueue] Added wfIncrStats() for job recycling.

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

Change-Id: I99e0eaef11ea6bfeee4b010f056ac0da4bd1d5f8
Allow non-English wikis to rebuild l10n cache

If a wiki is configured to use the l10n cache and $wgLanguageCode is set
to anything other that 'en', all maintenance scripts will fail until the
l10n cache is build for the first time. This includes
maintenance/rebuildLocalisationCache.php, the maintenance script that
builds the l10n cache.

To break this dependency, have maintenance/rebuildLocalisationCache.php
force $wgLanguageCode = 'en'.

Change-Id: Ia93998b0f85fd122dd7b01eeeef698f595360945
Merge "Localisation updates from http://translatewiki.net."