Reverting r84309 (New pages log doesn't remove/update item after suppression redirect...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 5 Aug 2011 17:03:35 +0000 (17:03 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 5 Aug 2011 17:03:35 +0000 (17:03 +0000)
includes/Title.php

index ca0838a..bea3c22 100644 (file)
@@ -3282,9 +3282,6 @@ class Title {
                $oldid = $this->getArticleID();
                $latest = $this->getLatestRevID();
 
-               $oldns = $this->getNamespace();
-               $olddbk = $this->getDBkey();
-
                $dbw = wfGetDB( DB_MASTER );
 
                if ( $moveOverRedirect ) {
@@ -3371,17 +3368,6 @@ class Title {
                                __METHOD__ );
                        $redirectSuppressed = false;
                } else {
-                       // Get rid of old new page entries in Special:NewPages and RC.
-                       // Needs to be before $this->resetArticleID( 0 ).
-                       $dbw->delete( 'recentchanges', array(
-                                       'rc_timestamp' => $dbw->timestamp( $this->getEarliestRevTime() ),
-                                       'rc_namespace' => $oldns,
-                                       'rc_title' => $olddbk,
-                                       'rc_new' => 1
-                               ),
-                               __METHOD__
-                       );
-
                        $this->resetArticleID( 0 );
                        $redirectSuppressed = true;
                }