* @ingroup RevisionDelete
*/
+use Wikimedia\Rdbms\IDatabase;
+
/**
* List for filearchive table items
*/
public function doQuery( $db ) {
$ids = array_map( 'intval', $this->ids );
+ $fileQuery = ArchivedFile::getQueryInfo();
return $db->select(
- 'filearchive',
- ArchivedFile::selectFields(),
- array(
+ $fileQuery['tables'],
+ $fileQuery['fields'],
+ [
'fa_name' => $this->title->getDBkey(),
'fa_id' => $ids
- ),
+ ],
__METHOD__,
- array( 'ORDER BY' => 'fa_id DESC' )
+ [ 'ORDER BY' => 'fa_id DESC' ],
+ $fileQuery['joins']
);
}