From 81fcd98a08c33ba7f8ff371c7dbaac6f37fdaf5e Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Thu, 1 Sep 2011 09:23:20 +0000 Subject: [PATCH] In Title::resetArticleID(), clear all entries in the LinkCache instead of just the ones for bad title stuff. resetArticleID() seemed to assume it was only called for titles that come into existance, but that's not correct: it's also called for titles that go out of existence, and titles whose redirect status changes. Noticed this because $nt->getRedirect()'s return value was wrong in my TitleMoveComplete hook. --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 56713cdf5d..023b3d88fe 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2552,7 +2552,7 @@ class Title { */ public function resetArticleID( $newid ) { $linkCache = LinkCache::singleton(); - $linkCache->clearBadLink( $this->getPrefixedDBkey() ); + $linkCache->clearLink( $this ); if ( $newid === false ) { $this->mArticleID = -1; -- 2.20.1