Title::moveToInternal doesn't return anything, but it does throw an exception

Means the evaluation of if ( is_array( $err ) ) { is always going to be false

Update the documentation

Change-Id: I0016495563e715a2a1927e227ec2bb5c80b5378b
Various updates needed to bump min php version to 5.3.2

Change-Id: I22015387e4ac5839a907059086d787f352746886
Use the same object when checking if the user is blocked instead of creating a new one.

* Block::parseTarget() first called trim() on its parameter which was converting objects into string, thus making the checks for object and null useless; now trim() is called after these checks.
* User::getBlockedStatus() was passing $this->getName() to Block::newFromTargert() which in turn was passed to Block::parseTarget() where a new User object was created.
  Instead of this, the User object is directly passed to Block::newFromTargert(), which avoids creating a new object for the same user.

Change-Id: Iffea21d4f53e8692072749264f7486c22b6be5fd
(bug 18195) Allow changing preferences via API

I have created an API module for changing the preferences.
It allows resetting preferences (reset argument) and bulk changes
of preferences (change argument) in a format:
name1=value1|name2=value2

The change argument has a limitation imposed by the current API
implementation as it cannot accept | in values. There is
available a pair of arguments optionname and optionvalue, the
latter accepts values with |.

I have created optionstoken parameter in meta=userinfo to provide
a token. There is already preferencestoken there, but I would
like to have a consistent naming.

Change-Id: I0d6c654a7354ba77e65e338423952a6a78c1150f
(bug 19195) Make user IDs more readily available with the API

Add some block ids and user ids to the result of some modules

Change-Id: If50604b888a54827eddde76574e779db6c7263ec
Done a bit of deglobalisation.

Change-Id: Id6e5e18b7bcaecd042528fdb37774a64e439e907
Noticed while looking at $wgShowUpdatedMarker related database queries, queries not using index order at all. Fixed up

Title.php at line 4313:
			array( 'wl_namespace' => $this->getNamespace(),
				'wl_title' => $this->getDBkey(),
				'wl_user' => $user->getId()
			),

In UserMailer.php at line 438:

array(
					'wl_title' => $title->getDBkey(),
					'wl_namespace' => $title->getNamespace(),
					'wl_user != ' . intval( $editor->getID() ),
					'wl_notificationtimestamp IS NULL',
				)

And line 455:

array( /* WHERE */
						'wl_title' => $title->getDBkey(),
						'wl_namespace' => $title->getNamespace(),
						'wl_user' => $watchers
					)

CREATE TABLE /*_*/watchlist (
  -- Key to user.user_id
  wl_user int unsigned NOT NULL,

  -- Key to page_namespace/page_title
  -- Note that users may watch pages which do not exist yet,
  -- or existed in the past but have been deleted.
  wl_namespace int NOT NULL default 0,
  wl_title varchar(255) binary NOT NULL default '',

  -- Timestamp when user was last sent a notification e-mail;
  -- cleared when the user visits the page.
  wl_notificationtimestamp varbinary(14)

) /*$wgDBTableOptions*/;

CREATE UNIQUE INDEX /*i*/wl_user ON /*_*/watchlist (wl_user, wl_namespace, wl_title);
CREATE INDEX /*i*/namespace_title ON /*_*/watchlist (wl_namespace, wl_title);

Change-Id: I633c009b4a1c614b966c69f042f94c2056e03784
(bug 31704) Allow selection of associated namespace on the watchlist

This patch does not contain javascript part for the checkboxes,
see bug 36317

Change-Id: If012d70b57a925d86d56503735a3bed9ef32dd3f
Adding tests for dumps

Change-Id: I9aa3b6d7349458b3e2b2c7111bda739bacc22f9f
Optimized SqlBagOStuff::getBatch() a bit.

Change-Id: I046ce9e1156071233077296b66071fcc0876719c
Bumping minimum supported version of PHPUnit to 3.6.7

With PHPUnit 3.6.7, we can finally check the output of tests.

Change-Id: Ib0f1afe5fd9ab9784ba7f78b2921cf047ccc83f3
(bug 30975) API import of pages with invalid characters in this wiki
leads to Fatal Error

Change-Id: Ifc3ba51efe19bded51460749a1cb980a9c5244c7
enable email for PreferencesTest.php

The tests in PreferencesTest.php checking email things,
enable email to let the test run complete and not depend on the wiki
setting.

Change-Id: I21b34b31c52a10e0f4f6b918ee25d98a97ea5981
ImagePage refactoring

* Use context everywhere
* Fix comments, including two functions from other files it references
* Remove pointless function return value

Change-Id: I29a0a2a54432c8ef7185a210c7f2f73c64bfb71c
Prevents sidebar links from jumping on page load

When I added an HD style sheet to the Vector skin, I styled the side
bar h5 and .body elements directly to increase padding on the left.
These properties were also set to transition over 250ms. When the
Vector extension modified those same properties with it's own
stylesheet which loads a little later than the Vector skin stylesheet,
the difference was especially visible because of the transitions. This
patch prevents this by adding transitioned padding to #mw-panel
instead, which is not modified by the Vector extension.

Change-Id: I9dfdd791bdcbb38806276852e17348e710f39f86
(bug 29296) Expanded Blacklist for SVG Files

Expanded detection of scripts inside SVG Files. Catches known
hostile files with minimal false-positives.

Disallows SVG Files that include remote resources, to protect
reader's privacy.

Change-Id: I5ba75ad621cdb0355351c8a9a0f1dbea552c258f
Few documentation/type hint updates

Change-Id: Ib2882cc03540403f74f68854fa76df375c1bb25a
Removed intval for undelete reason in API

Undelete reason is a string, it doesn't make sense to use
intval() to change it into an integer.

Change-Id: I76553d6a22305dca8cdc5d676ad60a9b146a0212
Merge "(bug 31704) Allow selection of associated namespace on the watchlist"
Merge "Few documentation/type hint updates"