$timestamps[] = $db->timestamp( $id );
}
- return $db->select( 'archive', Revision::selectArchiveFields(),
- [
- 'ar_namespace' => $this->title->getNamespace(),
- 'ar_title' => $this->title->getDBkey(),
- 'ar_timestamp' => $timestamps
- ],
- __METHOD__,
- [ 'ORDER BY' => 'ar_timestamp DESC' ]
- );
+ $tables = [ 'archive' ];
+ $fields = Revision::selectArchiveFields();
+ $conds = [
+ 'ar_namespace' => $this->title->getNamespace(),
+ 'ar_title' => $this->title->getDBkey(),
+ 'ar_timestamp' => $timestamps,
+ ];
+ $join_conds = [];
+ $options = [ 'ORDER BY' => 'ar_timestamp DESC' ];
+
+ ChangeTags::modifyDisplayQuery(
+ $tables,
+ $fields,
+ $conds,
+ $join_conds,
+ $options,
+ ''
+ );
+
+ return $db->select( $tables,
+ $fields,
+ $conds,
+ __METHOD__,
+ $options,
+ $join_conds
+ );
}
public function newItem( $row ) {
return $live;
}
- // Check if any requested revisions are available fully deleted.
- $archived = $db->select( [ 'archive' ], Revision::selectArchiveFields(),
- [
- 'ar_rev_id' => $ids
+ $archiveQueryInfo = [
+ 'tables' => [ 'archive' ],
+ 'fields' => Revision::selectArchiveFields(),
+ 'conds' => [
+ 'ar_rev_id' => $ids,
],
+ 'options' => [ 'ORDER BY' => 'ar_rev_id DESC' ],
+ 'join_conds' => [],
+ ];
+
+ 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'],
__METHOD__,
- [ 'ORDER BY' => 'ar_rev_id DESC' ]
+ $archiveQueryInfo['options'],
+ $archiveQueryInfo['join_conds']
);
if ( $archived->numRows() == 0 ) {