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