r44440 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44439‎ | r44440 | r44441 >
Date:01:17, 11 December 2008
Author:aaron
Status:ok
Tags:
Comment:
Fix this broken crap some more
Modified paths:
  • /trunk/phase3/includes/parser/CoreParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/CoreParserFunctions.php
@@ -284,7 +284,7 @@
285285 // Register dependency in templatelinks
286286 $id = $title->getArticleId();
287287 $rev = Revision::newFromTitle($title);
288 - $parser->mOutput->addTemplate( $title, $id, $rev->getId() );
 288+ $parser->mOutput->addTemplate( $title, $id, $rev ? $rev->getId() : 0 );
289289 }
290290 return self::formatRaw( $length, $raw );
291291 }

Status & tagging log