aboutsummaryrefslogtreecommitdiffstats
path: root/includes/gallery
diff options
context:
space:
mode:
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>2020-11-01 20:48:02 +0000
committerGerrit Code Review <gerrit@wikimedia.org>2020-11-01 20:48:02 +0000
commit929381a81fcdb5402886ae8ea3b389a1d7565465 (patch)
tree9116b1dec54d65cb764502fb26ec8258ea44115a /includes/gallery
parentd2a42bea5df73a9d862e9baf3d2ab51ef6b6e037 (diff)
parent973c562927d00a7e3beab5e913f4d92a80791092 (diff)
downloadmediawikicore-929381a81fcdb5402886ae8ea3b389a1d7565465.tar.gz
mediawikicore-929381a81fcdb5402886ae8ea3b389a1d7565465.zip
Merge "Use LinkBatchFactory"
Diffstat (limited to 'includes/gallery')
-rw-r--r--includes/gallery/TraditionalImageGallery.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/gallery/TraditionalImageGallery.php b/includes/gallery/TraditionalImageGallery.php
index c126470f34ad..46c6f7438d18 100644
--- a/includes/gallery/TraditionalImageGallery.php
+++ b/includes/gallery/TraditionalImageGallery.php
@@ -70,7 +70,8 @@ class TraditionalImageGallery extends ImageGalleryBase {
if ( $this->mShowFilename ) {
// Preload LinkCache info for when generating links
// of the filename below
- $lb = new LinkBatch();
+ $linkBatchFactory = MediaWikiServices::getInstance()->getLinkBatchFactory();
+ $lb = $linkBatchFactory->newLinkBatch();
foreach ( $this->mImages as $img ) {
$lb->addObj( $img[0] );
}