X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FTemplatesOnThisPageFormatter.php;h=bca1ef651a69bc602a05c423a1d6db8c894a5fee;hb=008428ce9e5f41995b5fa759d8cc3a4aa3cf6a89;hp=494c7bfc86cbdedeeaac809e2fa5a758b4c8ad19;hpb=acf2e7603c4de9ebe42563292f9587b5f8808cf1;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 = '
';