From: Aaron Schulz Date: Tue, 13 May 2008 16:06:31 +0000 (+0000) Subject: If no current revision, cache as dead link X-Git-Tag: 1.31.0-rc.0~47664 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=9568cafcf5134be2a00abd40bec36cffa7a52fcf;p=lhc%2Fweb%2Fwiklou.git If no current revision, cache as dead link --- diff --git a/includes/Parser.php b/includes/Parser.php index 9a73ee761f..94a95d5199 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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,