From: Siebrand Mazeland Date: Tue, 25 Nov 2008 20:57:29 +0000 (+0000) Subject: Sub pages get a redirect on move, even when "Leave a redirect behind" is checked... X-Git-Tag: 1.31.0-rc.0~44203 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=9e01ce30472931bc4c1f1e297690b46111a6eb07;p=lhc%2Fweb%2Fwiklou.git Sub pages get a redirect on move, even when "Leave a redirect behind" is checked. Fixed. --- 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 );