Adding sanity check to Title::isRedirect().
authordaniel <daniel.kinzler@wikimedia.de>
Thu, 24 May 2012 14:42:26 +0000 (16:42 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Tue, 29 May 2012 13:39:43 +0000 (15:39 +0200)
commit7d12b7b72c2060c58b6bd0759b80d985bb9431be
treed70285e9cf36ffb0dd44b155f127045304adde62
parent5ec99f4b24f7ce2bd4028d62c88d6adf44bda3f9
Adding sanity check to Title::isRedirect().

isRedirect() assumes that the LinkCache already contains
information about this title. If that is not the case, it
currently returns false, even though it just doesn't know
whether this link is a redirect.

The new check asserts the assumption that this title
is already known to the link cache.

Amend: use Exception instead of assert()

Change-Id: Id3ad2d4e140b270b1f5ca1f7af9b3320cffff5a2
includes/Title.php