Made resetArticleID() reset redirect/length/latest ID fields
authorAaron Schulz <aaron@users.mediawiki.org>
Thu, 11 Mar 2010 05:32:04 +0000 (05:32 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Thu, 11 Mar 2010 05:32:04 +0000 (05:32 +0000)
includes/Title.php

index 246cc9d..a14e289 100644 (file)
@@ -2176,10 +2176,16 @@ class Title {
                $linkCache = LinkCache::singleton();
                $linkCache->clearBadLink( $this->getPrefixedDBkey() );
 
-               if ( $newid === false ) { $this->mArticleID = -1; }
-               else { $this->mArticleID = intval( $newid ); }
+               if ( $newid === false ) {
+                       $this->mArticleID = -1;
+               } else {
+                       $this->mArticleID = intval( $newid );
+               }
                $this->mRestrictionsLoaded = false;
                $this->mRestrictions = array();
+               $this->mRedirect = null;
+               $this->mLength = -1;
+               $this->mLatestID = false;
        }
 
        /**