X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FTemplatesOnThisPageFormatter.php;h=bca1ef651a69bc602a05c423a1d6db8c894a5fee;hb=4c7e4575f59a6d4b1ef2e9b06d84f5a6b7514c90;hp=494c7bfc86cbdedeeaac809e2fa5a758b4c8ad19;hpb=320e4c56132681f811c2819e3e22e98715f46ae7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/TemplatesOnThisPageFormatter.php b/includes/TemplatesOnThisPageFormatter.php index 494c7bfc86..bca1ef651a 100644 --- a/includes/TemplatesOnThisPageFormatter.php +++ b/includes/TemplatesOnThisPageFormatter.php @@ -66,11 +66,7 @@ class TemplatesOnThisPageFormatter { } # 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 = '
';