Split parser related files to have one class in one file
[lhc/web/wiklou.git] / includes / TemplatesOnThisPageFormatter.php
index 494c7bf..bca1ef6 100644 (file)
@@ -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 = '<div class="mw-templatesUsedExplanation">';