dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27d95e0
)
Special:MovePage: Use LinkBatch when constructing subpages
author
Glaisher
<glaisher.wiki@gmail.com>
Sun, 14 Aug 2016 06:32:00 +0000
(11:32 +0500)
committer
Umherirrender
<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
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialMovepage.php
b/includes/specials/SpecialMovepage.php
index
9cc6745
..
f0b463a
100644
(file)
--- a/
includes/specials/SpecialMovepage.php
+++ b/
includes/specials/SpecialMovepage.php
@@
-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 );