From 81a35fb4d99aa3100fd80428ba4721599a405aaf Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 3 Apr 2005 07:34:44 +0000 Subject: [PATCH] Fixed bug with move page logging, need namespace too --- includes/Title.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index dc9e743a7c..6807e428cb 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1533,13 +1533,9 @@ class Title { $redirectArticle->updateRevisionOn( $dbw, $redirectRevision, 0 ); $wgLinkCache->clearLink( $this->getPrefixedDBkey() ); - # Record in RC - // Replaced by a log entry - // RecentChange::notifyMoveOverRedirect( $now, $this, $nt, $wgUser, $comment ); - # Log the move $log = new LogPage( 'move' ); - $log->addEntry( 'move_redir', $this, '', array(1 => $nt->getText()) ); + $log->addEntry( 'move_redir', $this, '', array( 1 => $nt->getPrefixedText() ) ); # Swap links @@ -1649,13 +1645,9 @@ class Title { $redirectArticle->updateRevisionOn( $dbw, $redirectRevision, 0 ); $wgLinkCache->clearLink( $this->getPrefixedDBkey() ); - # Record in RC - // Replaced by a log entry - // RecentChange::notifyMoveToNew( $now, $this, $nt, $wgUser, $comment ); - # Log the move $log = new LogPage( 'move' ); - $log->addEntry( 'move', $this, '', array(1 => $nt->getText()) ); + $log->addEntry( 'move', $this, '', array( 1 => $nt->getPrefixedText()) ); # Purge squid and linkscc as per article creation Article::onArticleCreate( $nt ); -- 2.20.1