Sub pages get a redirect on move, even when "Leave a redirect behind" is checked...
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Tue, 25 Nov 2008 20:57:29 +0000 (20:57 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Tue, 25 Nov 2008 20:57:29 +0000 (20:57 +0000)
RELEASE-NOTES
includes/specials/SpecialMovepage.php

index 134a0c2..37c3361 100644 (file)
@@ -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 ===
 
index 5f27944..4fc8b2e 100644 (file)
@@ -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 );