From f221d1fd92c18f33508ba8c0d20edfa398d4be07 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 14 Aug 2004 18:23:50 +0000 Subject: [PATCH] Typo/logic error in move page watchlist update. Bug 50: after moving a watched page the page is not in watch list any more http://bugzilla.wikipedia.org/show_bug.cgi?id=50 --- includes/Title.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 60a2d1b4db..5973f66cec 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -911,7 +911,6 @@ class Title { $this->moveToNewTitle( $nt, $newid ); } - # Fixing category links (those without piped 'alternate' names) to be sorted under the new title $dbw =& wfGetDB( DB_MASTER ); @@ -919,7 +918,6 @@ class Title { " WHERE cl_from=" . $dbw->addQuotes( $this->getArticleID() ) . " AND cl_sortkey=" . $dbw->addQuotes( $this->getPrefixedText() ); $dbw->query( $sql, "SpecialMovepage::doSubmit" ); - # Update watchlists @@ -928,7 +926,7 @@ class Title { $oldtitle = $this->getDBkey(); $newtitle = $nt->getDBkey(); - if( $oldnamespace != $newnamespace && $oldtitle != $newtitle ) { + if( $oldnamespace != $newnamespace || $oldtitle != $newtitle ) { WatchedItem::duplicateEntries( $this, $nt ); } -- 2.20.1