diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2020-11-01 20:48:02 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2020-11-01 20:48:02 +0000 |
commit | 929381a81fcdb5402886ae8ea3b389a1d7565465 (patch) | |
tree | 9116b1dec54d65cb764502fb26ec8258ea44115a /includes/gallery | |
parent | d2a42bea5df73a9d862e9baf3d2ab51ef6b6e037 (diff) | |
parent | 973c562927d00a7e3beab5e913f4d92a80791092 (diff) | |
download | mediawikicore-929381a81fcdb5402886ae8ea3b389a1d7565465.tar.gz mediawikicore-929381a81fcdb5402886ae8ea3b389a1d7565465.zip |
Merge "Use LinkBatchFactory"
Diffstat (limited to 'includes/gallery')
-rw-r--r-- | includes/gallery/TraditionalImageGallery.php | 3 |
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] ); } |