Merge "RCFilters: Remove excluded params from URL"
[lhc/web/wiklou.git] / includes / revisiondelete / RevDelArchivedFileList.php
index 1d80d86..1ed8726 100644 (file)
@@ -40,15 +40,17 @@ class RevDelArchivedFileList extends RevDelFileList {
        public function doQuery( $db ) {
                $ids = array_map( 'intval', $this->ids );
 
+               $fileQuery = ArchivedFile::getQueryInfo();
                return $db->select(
-                       'filearchive',
-                       ArchivedFile::selectFields(),
+                       $fileQuery['tables'],
+                       $fileQuery['fields'],
                        [
                                'fa_name' => $this->title->getDBkey(),
                                'fa_id' => $ids
                        ],
                        __METHOD__,
-                       [ 'ORDER BY' => 'fa_id DESC' ]
+                       [ 'ORDER BY' => 'fa_id DESC' ],
+                       $fileQuery['joins']
                );
        }