+ 'options' => [ 'ORDER BY' => 'ar_rev_id DESC' ],
+ 'join_conds' => $arQuery['joins'],
+ ];
+
+ ChangeTags::modifyDisplayQuery(
+ $archiveQueryInfo['tables'],
+ $archiveQueryInfo['fields'],
+ $archiveQueryInfo['conds'],
+ $archiveQueryInfo['join_conds'],
+ $archiveQueryInfo['options'],
+ ''
+ );
+
+ // Check if any requested revisions are available fully deleted.
+ $archived = $db->select(
+ $archiveQueryInfo['tables'],
+ $archiveQueryInfo['fields'],
+ $archiveQueryInfo['conds'],