Glaisher has uploaded a new change for review.
https://gerrit.wikimedia.org/r/304690
Change subject: Special:MovePage: Use LinkBatch when constructing subpages
......................................................................
Special:MovePage: Use LinkBatch when constructing subpages
Should help with T141029 and other cases, in general.
Bug: T141029
Change-Id: Iacda5acb0c569aa85eb328144c0af8d2cd07f126
---
M includes/specials/SpecialMovepage.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/90/304690/1
diff --git a/includes/specials/SpecialMovepage.php
b/includes/specials/SpecialMovepage.php
index d0c44c3..1318995 100644
--- a/includes/specials/SpecialMovepage.php
+++ b/includes/specials/SpecialMovepage.php
@@ -803,6 +803,10 @@
$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 );
--
To view, visit https://gerrit.wikimedia.org/r/304690
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iacda5acb0c569aa85eb328144c0af8d2cd07f126
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Glaisher <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits