Merge "objectcache: add some WANObjectCache comments to set() and delete()"
[lhc/web/wiklou.git] / includes / revisiondelete / RevDelArchiveList.php
index 9afaf40..4f66cda 100644 (file)
@@ -43,14 +43,15 @@ class RevDelArchiveList extends RevDelRevisionList {
                        $timestamps[] = $db->timestamp( $id );
                }
 
-               $tables = [ 'archive' ];
-               $fields = Revision::selectArchiveFields();
+               $arQuery = Revision::getArchiveQueryInfo();
+               $tables = $arQuery['tables'];
+               $fields = $arQuery['fields'];
                $conds = [
                        'ar_namespace' => $this->title->getNamespace(),
                        'ar_title' => $this->title->getDBkey(),
                        'ar_timestamp' => $timestamps,
                ];
-               $join_conds = [];
+               $join_conds = $arQuery['joins'];
                $options = [ 'ORDER BY' => 'ar_timestamp DESC' ];
 
                ChangeTags::modifyDisplayQuery(