From 8864d593d837221027843054fd4029b86ddc67ca Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 11 Mar 2010 05:32:04 +0000 Subject: [PATCH] Made resetArticleID() reset redirect/length/latest ID fields --- includes/Title.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 246cc9df50..a14e289624 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -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; } /** -- 2.20.1