Replace some occurrences of wfMsg* by alternatives. Undeprecated wfMsgReplaceArgs.

* wfMsgReplaceArgs isn't really i18n related. It just replaces text parts.
* Updated language.txt. Now refers to mediawiki.org.
* Removed deprecated Block::formatExpiry(). Merge Id7d057a4 first.
* Reformatted weirdly formatted array in ApiBase.php.
* Removed wfMsg() in RandomTest.php.

Change-Id: Ied5cfda8fa5d9283dfeebdcb0e1af8453d47e7a9
New hook, 'SearchResultInitFromTitle'

This hook lets you change the revision ID used for a page (a Title
object), when displaying that page in search results. It's useful for
the Approved Revs extension, so that pages whose approved revision is
not their latest can have their approved revision, not the latest one,
show up when doing a search text. It's also potentially useful for
other, similar extensions, like FlaggedRevs.

Change-Id: Ic4bad8dfaa83de131db9c8e7667d7f5767d8d5f5
Made default BagOStuff::incr() function more like memcached.

Change-Id: Ia216f20fdcf855448e2f2e4d99667e72c6254f82
Made DBABagOStuff return values match the base class better.

Change-Id: I2e6fd79195c52e66f8345c5cc67c2e3dcc04578d
Use $this to get the Title object in SkinTemplate::buildNavUrls()

No need to call OutputPage::getTitle().

Change-Id: I7ecd497b38044a05a953659780ac127bfb6597e5
(bug 39956) MediaWiki's info action should vertically align cell values to top
* Fixed spacing

Change-Id: Ic20ff3d7985b4cd2457a09f9cd0c76367e9e3980
Merge "(bug 39956) MediaWiki's info action should vertically align cell values to top * Fixed spacing"
Avoid redundant logging UPDATE query.

Change-Id: I277f311ea92ff3470039d9416e720573debba44a
Removed purgeStaleMemcachedText.php and refreshImageCount.php scripts

Both are Wikimedia-specific scripts and are now obsolete:
- purgeStaleMemcachedText.php is a script to purge memcached entries
  for revision text older than an hardcoded date of December 2012.
  This script is already in the WikimediaMaintenance extension.
- refreshImageCount.php is a hack to fix a schema update script dating
  to 2006.

Change-Id: I2ae469063eba502e662f80c38d5816c371550352
Improve documentation of maintenance scripts.

Change-Id: I768abad1ad4642263519d39c50c88437aed47e15
(bug 40058) Parse newwindow message.

Change-Id: Ibd24a2cbadecd0dbfeaa06d86d55dd2bcaeefa7d
Merge "New hook, 'SearchResultInitFromTitle'"
Merge "Avoid redundant logging UPDATE query."
Fix transaction nesting caused by LocalFile.

The transaction bracket in LocalFile::recordUpload2 used to span a call
to WikiPage::doEdit, which in turn opens a transaction. Nesting transactions
this way does not work: the first transaction is committed prematurely when
the second one starts. This may cause serious database corruption and
generally exciting behavior.

This change commits LocalFile's own transaction before any interaction
with WikiPage. There may be a race condition here, but that case seems to
be already handled in the code. Also, in the previous "broken" state, all
transactional protection got lost anyway - so this should at least be no
worse than what we had.

This may be changed back if and when we have support for nested
transactions.

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

Change-Id: Ied795a8d85a9ff888131061fd8ec0ef35027ca42
Replace deprecated methods.

Also updated code formatting.

Change-Id: I188b5d29c9496383df10c391b29e9d26e59e8aeb
Merge "Use $this to get the Title object in SkinTemplate::buildNavUrls()"
Merge "(bug 40058) Parse newwindow message."
Fix Title::getRedirectsHere to respect interwiki prefix

Respecting rd_interwiki is needed to act the same way than
Special:Whatlinkshere. For local redirects it is needed to also check
for NULL, not only the empty string

Change-Id: I4f3f242d69054dcbb3c7a02441991196ba140986
Merge "Made default BagOStuff::incr() function more like memcached."