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