$createRedirect = true;
}
- # Do the actual move. First remember the old ID for later reference,
- # so that we don't get the ID of the redirect.
- $oldId = $ot->getArticleId();
+ # Do the actual move.
$error = $ot->moveTo( $nt, true, $this->reason, $createRedirect );
if ( $error !== true ) {
# FIXME: show all the errors in a list, not just the first one
$skin = $wgUser->getSkin();
$count = 1;
foreach( $extraPages as $oldSubpage ) {
- if( $oldSubpage->getArticleId() == $oldId ) {
+ if( $ot->equals( $oldSubpage ) ) {
# Already did this one.
continue;
}