If no current revision, cache as dead link

This commit is contained in:
Aaron Schulz 2008-05-13 16:06:31 +00:00
parent 44abdfff1d
commit 9568cafcf5

View file

@ -3082,6 +3082,11 @@ class Parser
}
$rev = $id ? Revision::newFromId( $id ) : Revision::newFromTitle( $title );
$rev_id = $rev ? $rev->getId() : 0;
// If there is no current revision, there is no page
if( $id === false && !$rev ) {
$linkCache = LinkCache::singleton();
$linkCache->addBadLinkObj( $title );
}
$deps[] = array(
'title' => $title,