X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialFileDuplicateSearch.php;h=7694a61069c4ea9fefe58f8ab6ce200e81a77202;hp=8021bc2c3af751b57d1e98bb5d05ca0a8db72c74;hb=27c61fb1e94da9114314468fd00bcf129ec064b6;hpb=0c712ce564e0bd53e28f2581a714ee8cd04b614c diff --git a/includes/specials/SpecialFileDuplicateSearch.php b/includes/specials/SpecialFileDuplicateSearch.php index 8021bc2c3a..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'], ]; }