From d57050f8fca2a9465e7e2254d277648d7e095dee Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 11 Dec 2008 01:17:17 +0000 Subject: [PATCH] Fix this broken crap some more --- includes/parser/CoreParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/parser/CoreParserFunctions.php b/includes/parser/CoreParserFunctions.php index de55f7c576..8c0dfbd56e 100644 --- a/includes/parser/CoreParserFunctions.php +++ b/includes/parser/CoreParserFunctions.php @@ -284,7 +284,7 @@ class CoreParserFunctions { // Register dependency in templatelinks $id = $title->getArticleId(); $rev = Revision::newFromTitle($title); - $parser->mOutput->addTemplate( $title, $id, $rev->getId() ); + $parser->mOutput->addTemplate( $title, $id, $rev ? $rev->getId() : 0 ); } return self::formatRaw( $length, $raw ); } -- 2.20.1