From: Brion Vibber Date: Sat, 14 Aug 2004 18:23:50 +0000 (+0000) Subject: Typo/logic error in move page watchlist update. X-Git-Tag: 1.5.0alpha1~2361 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f221d1fd92c18f33508ba8c0d20edfa398d4be07;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ); }