[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Special:MovePage: Use LinkBatch when constructing subpages

2016-09-02 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

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(-)

Approvals:
  Umherirrender: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialMovepage.php 
b/includes/specials/SpecialMovepage.php
index 9cc6745..f0b463a 100644
--- a/includes/specials/SpecialMovepage.php
+++ b/includes/specials/SpecialMovepage.php
@@ -804,6 +804,10 @@
$out->addWikiMsg( 'movesubpagetext', 
$this->getLanguage()->formatNum( $count ) );
$out->addHTML( "\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: merged
Gerrit-Change-Id: Iacda5acb0c569aa85eb328144c0af8d2cd07f126
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Glaisher 
Gerrit-Reviewer: Florianschmidtwelzow 
Gerrit-Reviewer: Umherirrender 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Special:MovePage: Use LinkBatch when constructing subpages

2016-08-14 Thread Glaisher (Code Review)
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( "\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 

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits