X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialFileDuplicateSearch.php;h=7694a61069c4ea9fefe58f8ab6ce200e81a77202;hb=27c61fb1e94da9114314468fd00bcf129ec064b6;hp=6de127d3b820fb8162ce854f5074af9481960b2d;hpb=939199bcea28a3b13c49c0f808d11d415660b924;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 6de127d3b8..7694a61069 100644 --- a/includes/specials/SpecialFileDuplicateSearch.php +++ b/includes/specials/SpecialFileDuplicateSearch.php @@ -85,15 +85,17 @@ class FileDuplicateSearchPage extends QueryPage { } public function getQueryInfo() { + $imgQuery = LocalFile::getQueryInfo(); return [ - 'tables' => [ 'image' ], + 'tables' => $imgQuery['tables'], 'fields' => [ 'title' => 'img_name', 'value' => 'img_sha1', - 'img_user_text', + 'img_user_text' => $imgQuery['fields']['img_user_text'], 'img_timestamp' ], - 'conds' => [ 'img_sha1' => $this->hash ] + 'conds' => [ 'img_sha1' => $this->hash ], + 'join_conds' => $imgQuery['joins'], ]; } @@ -208,11 +210,12 @@ class FileDuplicateSearchPage extends QueryPage { function formatResult( $skin, $result ) { global $wgContLang; + $linkRenderer = $this->getLinkRenderer(); $nt = $result->getTitle(); $text = $wgContLang->convert( $nt->getText() ); - $plink = Linker::link( + $plink = $linkRenderer->makeLink( $nt, - htmlspecialchars( $text ) + $text ); $userText = $result->getUser( 'text' );