Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -357,9 +357,7 @@ |
358 | 358 | $createRedirect = true; |
359 | 359 | } |
360 | 360 | |
361 | | - # Do the actual move. First remember the old ID for later reference, |
362 | | - # so that we don't get the ID of the redirect. |
363 | | - $oldId = $ot->getArticleId(); |
| 361 | + # Do the actual move. |
364 | 362 | $error = $ot->moveTo( $nt, true, $this->reason, $createRedirect ); |
365 | 363 | if ( $error !== true ) { |
366 | 364 | # FIXME: show all the errors in a list, not just the first one |
— | — | @@ -453,7 +451,7 @@ |
454 | 452 | $skin = $wgUser->getSkin(); |
455 | 453 | $count = 1; |
456 | 454 | foreach( $extraPages as $oldSubpage ) { |
457 | | - if( $oldSubpage->getArticleId() == $oldId ) { |
| 455 | + if( $ot->equals( $oldSubpage ) ) { |
458 | 456 | # Already did this one. |
459 | 457 | continue; |
460 | 458 | } |