X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FDeletedContribsPager.php;h=38a332e6a1892a17bec64339df530e44837447be;hp=43d7ad40c7b5116a223e7f7918eab4a7d805125c;hb=2480aae0c97d822e10b50619e7b48b25c45af073;hpb=8b706516e027a7ad81f04b123fd53d77f351787a diff --git a/includes/specials/pagers/DeletedContribsPager.php b/includes/specials/pagers/DeletedContribsPager.php index 43d7ad40c7..38a332e6a1 100644 --- a/includes/specials/pagers/DeletedContribsPager.php +++ b/includes/specials/pagers/DeletedContribsPager.php @@ -69,14 +69,17 @@ class DeletedContribsPager extends IndexPager { ' != ' . Revision::SUPPRESSED_USER; } + $commentQuery = CommentStore::newKey( 'ar_comment' )->getJoin(); + return [ - 'tables' => [ 'archive' ], + 'tables' => [ 'archive' ] + $commentQuery['tables'], 'fields' => [ - 'ar_rev_id', 'ar_namespace', 'ar_title', 'ar_timestamp', 'ar_comment', + 'ar_rev_id', 'ar_namespace', 'ar_title', 'ar_timestamp', 'ar_minor_edit', 'ar_user', 'ar_user_text', 'ar_deleted' - ], + ] + $commentQuery['fields'], 'conds' => $conds, - 'options' => [ 'USE INDEX' => $index ] + 'options' => [ 'USE INDEX' => [ 'archive' => $index ] ], + 'join_conds' => $commentQuery['joins'], ]; } @@ -253,7 +256,7 @@ class DeletedContribsPager extends IndexPager { $rev = new Revision( [ 'title' => $page, 'id' => $row->ar_rev_id, - 'comment' => $row->ar_comment, + 'comment' => CommentStore::newKey( 'ar_comment' )->getComment( $row )->text, 'user' => $row->ar_user, 'user_text' => $row->ar_user_text, 'timestamp' => $row->ar_timestamp,