r63584 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63583‎ | r63584 | r63585 >
Date:05:32, 11 March 2010
Author:aaron
Status:resolved
Tags:
Comment:
Made resetArticleID() reset redirect/length/latest ID fields
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -2176,10 +2176,16 @@
21772177 $linkCache = LinkCache::singleton();
21782178 $linkCache->clearBadLink( $this->getPrefixedDBkey() );
21792179
2180 - if ( $newid === false ) { $this->mArticleID = -1; }
2181 - else { $this->mArticleID = intval( $newid ); }
 2180+ if ( $newid === false ) {
 2181+ $this->mArticleID = -1;
 2182+ } else {
 2183+ $this->mArticleID = intval( $newid );
 2184+ }
21822185 $this->mRestrictionsLoaded = false;
21832186 $this->mRestrictions = array();
 2187+ $this->mRedirect = null;
 2188+ $this->mLength = -1;
 2189+ $this->mLatestID = false;
21842190 }
21852191
21862192 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r82297Fix the issue where all links on Special:Contributions where marked as stubs ...platonides21:30, 16 February 2011
r82426Follow up r63584. The change of resetArticleID() could have all kinds of...platonides23:44, 18 February 2011

Status & tagging log