If no current revision, cache as dead link
This commit is contained in:
parent
44abdfff1d
commit
9568cafcf5
1 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue