From 9e01ce30472931bc4c1f1e297690b46111a6eb07 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 25 Nov 2008 20:57:29 +0000 Subject: [PATCH] Sub pages get a redirect on move, even when "Leave a redirect behind" is checked. Fixed. --- RELEASE-NOTES | 1 + includes/specials/SpecialMovepage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 134a0c2335..37c3361a17 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -365,6 +365,7 @@ The following extensions are migrated into MediaWiki 1.14: * (bug 8702) Properly update stats when running nukePage maintenance script * (bug 7726) Searches for words less than 4 characters now work without requiring customization of MySQL server settings +* Honour "Leave a redirect behind" when also moving subpages === API changes in 1.14 === diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 5f279446df..4fc8b2ed3b 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -440,7 +440,7 @@ class MovePageForm { $link = $skin->makeKnownLinkObj( $newSubpage ); $extraOutput []= wfMsgHtml( 'movepage-page-exists', $link ); } else { - $success = $oldSubpage->moveTo( $newSubpage, true, $this->reason ); + $success = $oldSubpage->moveTo( $newSubpage, true, $this->reason, $createRedirect ); if( $success === true ) { if ( $this->fixRedirects ) { DoubleRedirectJob::fixRedirects( 'move', $oldSubpage, $newSubpage ); -- 2.20.1