Adding sanity check to the LinksUpdate() constructor.
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 24 May 2012 14:48:46 +0000 (16:48 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 29 May 2012 13:44:58 +0000 (15:44 +0200)
commita6c9dcc13e1ae0b03d804a34fa79be230813f776
treee5e578d4b48b4f1aacd7ec1d6bb5fd8c64831894
parent5ec99f4b24f7ce2bd4028d62c88d6adf44bda3f9
Adding sanity check to the LinksUpdate() constructor.

The check makes sure that the page id is known for the title
passed to the constructor. LinksUpdate needs to know this id in
order to update the various links tables. If the page id is not
known to the title (e.g. because the page doesn't actually exist)
something is wrong, and LinksUpdate can't operate.

Amend: use MWException instead of assert()

Change-Id: I4873211a71099fe3563b52a53532c95b6a2ff30f
includes/LinksUpdate.php