Convert -{}- markups in title="" and alt="".

convertTo() is used to replace translate() currently in use to
do conversion for some attributes of HTML tags.

Change-Id: Iee3ec2913787f15616abe6cf8880b59a883c82a0
Removed READ_LATEST default from Revision::newFromPageId().

Change-Id: If3feb424314be5db88cb0f25c0358b3be4cad572
fix merge of Iec98e472

Change-Id: I0db2e30ce6e80d046c223bcf3e4d2569922e172f
Prevent page moved to different content model.

Pages should never be moved in a way that would change their content model.
Without this explicite check, that might happen when $wgContentHandlerUseDB
is disabled.

Change-Id: Id1a101f56bee6f13a7259d34019c587e75a4c182
Use ContentHandler as a factory for recirects.

Redirects should not be constructed as wikitext, since other content models
may use other mechanisms to represent redirects.

Change-Id: Id85c3b3ada1924628e4e51757573d233e998f920
For now, use the parser cache only for wikitext.

Caching could be enabled for other content types, but for the moment,
JS and CSS pages rely on the fact that the ShowRawCssJs hooks is called
for every view - which is bypassed when the parser cache is used.

Change-Id: Icf603b9f2a685d9e705db3459fcd12dae1fdba57
Make runLegacyHooks work around bug in Hooks.

Hooks::isRegistered() doesn't consider hooks in $wgHooks.
Until that is fixed (see I39bd5de2), we need to check that explicitely.

Change-Id: I211c0c8bd0cd618151e56a11171ec8feef328d16
don't overwrite $item['single-id'] in makeListItem in SkinTemplate

This makes it possible to use it with links that are supposed to use
custom ids, but stock tooltips.

Change-Id: I2e3ed92bd23dbaebf0c404979343b463c8c357cf
[FileBackend] Tweaked TempFSFile::bind() to handle __get().

Change-Id: I0ce288742bba1335bf26ce38fb3b7e441b2d8b1f
Use parseAsBlock() instead of parse() to show the error message in OutputPage::showErrorPage()

When a message name is passed, addWikiMsgArray() is used, so it adds a <p> arround the
result. Do the same when a Message object is passed to that method.

Change-Id: Ie97ad9a921ae3fc6d327531b0ace64b6a08e1fa2
(bug 40834) mw.loader: Fix comma-joined 404 error.

It passed an array instead of a url to addLink so internally
Array.prototype.toString happened which joins by comma.

In debug mode modules with more than 1 stylesheet were 404 error
as it was trying to load 'http://.../foo.css,http://.../bar.css'.

Unit tests didn't catch it because they all only tested an array
with 1 url. Updated the test to assert this from now on.

Follows-up I3e8227ddb87fd9441071ca935439fc6467751dab.

Change-Id: I32a79af637acb782e07bbae413b0f007350096c3
(bug 40820) Revert my changes to includes/actions/CreditsAction.php

Also don't show contributors on action=info

Change-Id: I48b70b3d6b94e295aca23d506c7cce9185df4bcc
(bug 40789) Fixed $wgSecureLogin after-login redirect.

Check for $wgSecureLogin accidentally redirected users
to HTTPS when $wgSecureLogin was off. This fixes the
conditional statement so that when secure login is off
original functionality is preserved.

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

Change-Id: I1b2cf70c578511ef44a2381e506ee168cc57c7ec
Merge "(bug 40820) Revert my changes to includes/actions/CreditsAction.php"
Replaced some !count() with explicit and more efficient check

Change-Id: I004dbeb6fd00147979ca048d2b3f9f8adc04988a
Fix an issue with the data-sort-type retrieval.

The treatment of attributes with embedded dashes was changed in jQuery
1.6 to conform to the W3C HTML5 specification. Hyphenated names become
camel-cased.

Change-Id: I4ac2ebdc1ba8350b9696e516f62ba803fa8fb46b
Fix issue with link in history line for revs hidden from sysops

Looks like this link should have been called $del instead of $cdel.

Needs some verification. Blame came up with Aaron's change in
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/58351. Looks like it may
have been a typo.

Change-Id: I36607e1d1365ddfb0383d68702291509b94a931a
Remove some unused local variables.

Also add a FIXME for a weird case.

Change-Id: I1f7f8a522fc49be85051a467455796c3f564584b
Deprecate $wgSharedDB

Deprecate $wgSharedDB in response to it accidentally being used in
Wikidata. It was always an ugly hack.

Change-Id: I68f3bfe7afc49a49cd310b66dc03cf52507d3e58