In LinkHolderArray::doVariants(), redlinks need to be checked as well.
authorLiangent <liangent@gmail.com>
Mon, 21 May 2012 14:59:10 +0000 (22:59 +0800)
committerLiangent <liangent@gmail.com>
Mon, 2 Jul 2012 11:51:55 +0000 (19:51 +0800)
commitd80ebf9c91edfaa1febc369c1332059ed4312519
tree7fc9b447b538f08bd6cd7689735e1f539716e29a
parente1af77757abff7bfb1635c99e444601a46712b75
In LinkHolderArray::doVariants(), redlinks need to be checked as well.

Currently a simple Title::exists() or Title::getArticleId() call on a
non-existent title can cause the title marked as redlinks in LinkCache,
even if a title in another variant exists. A visible appearance is that
the function refuses to try other variants of a link if the link has
already been checked by {{#ifexist:}}, which internally calls
$lang->findVariantLink() then $title->exists() is invoked.

$titlesToBeConverted is also tweaked to avoid the trailing "\0".

Change-Id: I741e2938eb364ed29f10f058da260848a6774f9f
includes/parser/LinkHolderArray.php