Index: trunk/phase3/includes/parser/CoreParserFunctions.php |
— | — | @@ -283,8 +283,8 @@ |
284 | 284 | |
285 | 285 | // Register dependency in templatelinks |
286 | 286 | $id = $title->getArticleId(); |
287 | | - $revid = Revision::newFromTitle($title); |
288 | | - $parser->mOutput->addTemplate($title, $id, $revid); |
| 287 | + $rev = Revision::newFromTitle($title); |
| 288 | + $parser->mOutput->addTemplate( $title, $id, $rev->getId() ); |
289 | 289 | } |
290 | 290 | return self::formatRaw( $length, $raw ); |
291 | 291 | } |