dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logger: Produce traces for all Throwables
[lhc/web/wiklou.git]
/
includes
/
TemplatesOnThisPageFormatter.php
diff --git
a/includes/TemplatesOnThisPageFormatter.php
b/includes/TemplatesOnThisPageFormatter.php
index
494c7bf
..
bca1ef6
100644
(file)
--- a/
includes/TemplatesOnThisPageFormatter.php
+++ b/
includes/TemplatesOnThisPageFormatter.php
@@
-66,11
+66,7
@@
class TemplatesOnThisPageFormatter {
}
# Do a batch existence check
}
# Do a batch existence check
- $batch = new LinkBatch;
- foreach ( $templates as $title ) {
- $batch->addObj( $title );
- }
- $batch->execute();
+ ( new LinkBatch( $templates ) )->execute();
# Construct the HTML
$outText = '<div class="mw-templatesUsedExplanation">';
# Construct the HTML
$outText = '<div class="mw-templatesUsedExplanation">';