Special:MovePage: Use LinkBatch when constructing subpages
authorGlaisher <glaisher.wiki@gmail.com>
Sun, 14 Aug 2016 06:32:00 +0000 (11:32 +0500)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 2 Sep 2016 12:08:39 +0000 (12:08 +0000)
Should help with T141029 and other cases, in general.

Bug: T141029
Change-Id: Iacda5acb0c569aa85eb328144c0af8d2cd07f126

includes/specials/SpecialMovepage.php

index 9cc6745..f0b463a 100644 (file)
@@ -804,6 +804,10 @@ class MovePageForm extends UnlistedSpecialPage {
                $out->addWikiMsg( 'movesubpagetext', $this->getLanguage()->formatNum( $count ) );
                $out->addHTML( "<ul>\n" );
 
+               $linkBatch = new LinkBatch( $subpages );
+               $linkBatch->setCaller( __METHOD__ );
+               $linkBatch->execute();
+
                $linkRenderer = $this->getLinkRenderer();
                foreach ( $subpages as $subpage ) {
                        $link = $linkRenderer->makeLink( $subpage );