$this->moveToNewTitle( $nt, $newid );
}
-
# Fixing category links (those without piped 'alternate' names) to be sorted under the new title
$dbw =& wfGetDB( DB_MASTER );
" WHERE cl_from=" . $dbw->addQuotes( $this->getArticleID() ) .
" AND cl_sortkey=" . $dbw->addQuotes( $this->getPrefixedText() );
$dbw->query( $sql, "SpecialMovepage::doSubmit" );
-
# Update watchlists
$oldtitle = $this->getDBkey();
$newtitle = $nt->getDBkey();
- if( $oldnamespace != $newnamespace && $oldtitle != $newtitle ) {
+ if( $oldnamespace != $newnamespace || $oldtitle != $newtitle ) {
WatchedItem::duplicateEntries( $this, $nt );
}