This happens if a page is moved to a subpage of itself and the option
"move subpages" is enabled, since the freshly moved page will be found
as being one of its subpages and moved a second time as such.
Bug: 49840
Change-Id: I318aab8c3c6e7ae718a3366ab00aba6e5420529b
$extraOutput = array();
$count = 1;
foreach ( $extraPages as $oldSubpage ) {
$extraOutput = array();
$count = 1;
foreach ( $extraPages as $oldSubpage ) {
- if ( $ot->equals( $oldSubpage ) ) {
+ if ( $ot->equals( $oldSubpage ) || $nt->equals( $oldSubpage ) ) {
# Already did this one.
continue;
}
# Already did this one.
continue;
}