Index: trunk/phase3/includes/Article.php |
— | — | @@ -1754,7 +1754,7 @@ |
1755 | 1755 | |
1756 | 1756 | if ( $affected ) { |
1757 | 1757 | $newid = $dbw->insertId(); |
1758 | | - $this->mTitle->resetArticleId( $newid ); |
| 1758 | + $this->mTitle->resetArticleID( $newid ); |
1759 | 1759 | } |
1760 | 1760 | wfProfileOut( __METHOD__ ); |
1761 | 1761 | |
— | — | @@ -2271,6 +2271,8 @@ |
2272 | 2272 | $revisionId = $revision->insertOn( $dbw ); |
2273 | 2273 | |
2274 | 2274 | $this->mTitle->resetArticleID( $newid ); |
| 2275 | + # Update the LinkCache. Resetting the Title ArticleID means it will rely on having that already cached (FIXME?) |
| 2276 | + LinkCache::singleton()->addGoodLinkObj( $newid, $this->mTitle, strlen( $text ), (bool)Title::newFromRedirect( $text ), $revisionId ); |
2275 | 2277 | |
2276 | 2278 | # Update the page record with revision data |
2277 | 2279 | $this->updateRevisionOn( $dbw, $revision, 0 ); |