Show HTTP error (if any) when scary transclusion fails

Also document all the scary transclusion messages.

Change-Id: I5ff473ed4bfccedbb5feb3f2ef469eec6eb2e57c
(bug 40098) Don't parse the section's name in the summary when creating a new section

Fix for Ifa80db1d (8d4913e)

Change-Id: I9a56b7c6d2e7d0997f92578cbfabbf532bfb07de
Clean up: Declare variables with public instead of var

Variables in classes should be declared using public $foo
instead of var $foo for various reasons. As we require PHP 5.3
we don't have to take care about that PHP4 left over, but can
get rid of it in favour of the more clear and better readable
public.
See also: http://php.net/manual/en/language.oop5.visibility.php
(Divided into several commits to keep reviewable)

Change-Id: Ic723d0347ab2e3c78bc0097345c68bbee3dc035a
LivePreview: bind a delegated click event for #wpPreview/Diff

This makes it work with edit forms added to the page after it is loaded,
e.g. by an extension (like LiquidThreads).

Change-Id: Ia9673a754c871baea82bb28ded7b19e2608d9d03
Support explicit 0 and 1 forms for plural in PHP

rails-i18n has the same, lets see if this is flexible
enough or whether we need to allow more complex expressions.

Change-Id: I50eb0c6d1c02ca936848d310de625ed1fe43d91a
Updated plural rules from CLDR 22

Change-Id: I0325635a8e0fa3d5defbcbc3a0f4746ed4ab14c1
add dir='ltr' to non-localized debug toolbar stuff

It might be nice to localize this stuff; until then,
it is rather annoying to look at broken parentheses
when using MediaWiki and the toolbar in a RTL language.

Removed text-align: left, so it won't be flipped.

Added an explicit label for Peak memory - it's clearer and it helps
with LTR layout (the units are localized and confuse the display).

Added lang="en" dir="ltr" to the main containter, which is
the right thing until it's properly localized.

Change-Id: I1d0ef6d12eefac0ff28277e4cc2dbc62acd9eee2
[FileBackend] Avoid stat call in getFileContents() for swift.

* Also removed unused "nostat" flag in addMissingMetadata().

Change-Id: I5f4d827d916b9ca97b9ffd6943c73b6b2faae724
(bug 40306) Only convert align to float for table.

Align should be converted to text-align for all the elements specified
in $presentationalAttribs mapping. Table however is an exception, it
applies to alignment of the block (instead of the content).

Follow up I108cbd10 / 27a4d74bd7.

Change-Id: Iee17d4ef1a6a9b46d88a330cfc9179bccfe93247
Remove some debug output when opening a new database connection

Simplified the messages to avoid duplicates.

Change-Id: Ibcccc98bc18bdd0e0b876d9ad97f281c643eeabf
Merge "(bug 40306) Only convert align to float for table."
(bug 39975) Fixed thumb_handler.php handling of /temp thumb urls.

This basically makes the 'rel404' param for temp thumbanils not
start with "/temp" anymore so that they don't count as bogus.

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

Change-Id: Ib3e345d8717343355fb0d093f8d8c3fe7d9b92ed
Change case to use the canonical names.

Change-Id: Ib2640e608ac4d33871446b15fca3780eb7715f1d
(bug 40046) MediaWiki's info action should link first revision of a page

Change-Id: I9cf13eafc7a18db27391cfc160f780cd73d88b87
Forward the User object from WikiPage to Revision.

This affects the following methods of WikiPage:
- getText()
- getUser()
- getCreator()
- getUserText()
- getComment()

These are wrapper to methods in the Revision class
that accept an optional User object as second parameter
in the case FOR_THIS_USER is passed as first parameter.

Change-Id: I81a2470378bc1134dd144743d376ba31f4fe13d1
(bug 32052) Improve "noarticletext-nopermission" message

Specifying explicitly that user has no permission.
Better at the end because it's not the most important thing and for consistency.
Wording stolen from 'movenotallowed' and so on.

Change-Id: I81abd21ee646332dd455a48076515cf0a683fd9c
[FileBackend] Factored out setConcurrencyFlags() function.

* This moves some options code from FileBackend to FileBackendStore,
  where it belongs. This also allows for reuse by other operations.

Change-Id: Ic9a7d36a6e4bc6b815a7d68926105401f65c53fb
Merge "(bug 32052) Improve "noarticletext-nopermission" message"
Merge "add dir='ltr' to non-localized debug toolbar stuff"