http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95951
Revision: 95951
Author: catrope
Date: 2011-09-01 09:23:20 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/phase3/includes/Title.php
Modified: trunk/phase3/includes/Title.php
===================================================================
--- trunk/phase3/includes/Title.php 2011-09-01 09:10:01 UTC (rev 95950)
+++ trunk/phase3/includes/Title.php 2011-09-01 09:23:20 UTC (rev 95951)
@@ -2552,7 +2552,7 @@
*/
public function resetArticleID( $newid ) {
$linkCache = LinkCache::singleton();
- $linkCache->clearBadLink( $this->getPrefixedDBkey() );
+ $linkCache->clearLink( $this );
if ( $newid === false ) {
$this->mArticleID = -1;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs