X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialMIMEsearch.php;h=a54d72de5808f7757f60814847cb9116cd4c882a;hb=2f6c4da1aead080b8b390b5c9d419bd36b15bf03;hp=7087cff4c07850af3ef872c432c467c67db5715c;hpb=447ba0260189568b5fc01a5d516e58561bd85137;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialMIMEsearch.php b/includes/specials/SpecialMIMEsearch.php index 7087cff4c0..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' => [ @@ -86,8 +87,10 @@ class MIMEsearchPage extends QueryPage { MEDIATYPE_TEXT, MEDIATYPE_EXECUTABLE, MEDIATYPE_ARCHIVE, + MEDIATYPE_3D, ], ] + $minorType, + 'join_conds' => $imgQuery['joins'], ]; return $qi;