Made resetArticleID( 0 ) actually set the ID to zero. "false" can be used to unload...
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 28 Feb 2009 04:50:26 +0000 (04:50 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 28 Feb 2009 04:50:26 +0000 (04:50 +0000)
includes/Article.php
includes/Title.php

index b450057..f236de5 100644 (file)
@@ -2576,7 +2576,6 @@ class Article {
 
                # Clear the cached article id so the interface doesn't act like we exist
                $this->mTitle->resetArticleID( 0 );
-               $this->mTitle->mArticleID = 0;
 
                # Log the deletion, if the page was suppressed, log it at Oversight instead
                $logtype = $suppress ? 'suppress' : 'delete';
index 616aebd..097e9ef 100644 (file)
@@ -2110,7 +2110,7 @@ class Title {
                $linkCache = LinkCache::singleton();
                $linkCache->clearBadLink( $this->getPrefixedDBkey() );
 
-               if ( 0 == $newid ) { $this->mArticleID = -1; }
+               if ( $newid === false ) { $this->mArticleID = -1; }
                else { $this->mArticleID = $newid; }
                $this->mRestrictionsLoaded = false;
                $this->mRestrictions = array();