IAlex has uploaded a new change for review.
https://gerrit.wikimedia.org/r/70743
Change subject: (bug 49840) Moving a page with subpages may lead in the page
being moved twice
......................................................................
(bug 49840) Moving a page with subpages may lead in the page being moved twice
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
---
M includes/specials/SpecialMovepage.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/43/70743/1
diff --git a/includes/specials/SpecialMovepage.php
b/includes/specials/SpecialMovepage.php
index 2ba3c06..ccc2bf2 100644
--- a/includes/specials/SpecialMovepage.php
+++ b/includes/specials/SpecialMovepage.php
@@ -624,7 +624,7 @@
$extraOutput = array();
$count = 1;
foreach ( $extraPages as $oldSubpage ) {
- if ( $ot->equals( $oldSubpage ) ) {
+ if ( $ot->equals( $oldSubpage ) || $nt->equals(
$oldSubpage ) ) {
# Already did this one.
continue;
}
--
To view, visit https://gerrit.wikimedia.org/r/70743
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I318aab8c3c6e7ae718a3366ab00aba6e5420529b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits