X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMIMEsearch.php;h=a54d72de5808f7757f60814847cb9116cd4c882a;hb=5dc68aedf45a7b2de6d6c6e736f9014873aa8186;hp=3290abd5a3e143e71a4e7e6feef68c323a95de24;hpb=10416149eaa4fa7e7a4a411b8338b0cbb0310b62;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMIMEsearch.php b/includes/specials/SpecialMIMEsearch.php index 3290abd5a3..a54d72de58 100644 --- a/includes/specials/SpecialMIMEsearch.php +++ b/includes/specials/SpecialMIMEsearch.php @@ -56,8 +56,9 @@ class MIMEsearchPage extends QueryPage { // Allow wildcard searching $minorType['img_minor_mime'] = $this->minor; } + $imgQuery = LocalFile::getQueryInfo(); $qi = [ - 'tables' => [ 'image' ], + 'tables' => $imgQuery['tables'], 'fields' => [ 'namespace' => NS_FILE, 'title' => 'img_name', @@ -67,7 +68,7 @@ class MIMEsearchPage extends QueryPage { 'img_size', 'img_width', 'img_height', - 'img_user_text', + 'img_user_text' => $imgQuery['fields']['img_user_text'], 'img_timestamp' ], 'conds' => [ @@ -89,6 +90,7 @@ class MIMEsearchPage extends QueryPage { MEDIATYPE_3D, ], ] + $minorType, + 'join_conds' => $imgQuery['joins'], ]; return $qi;