Pass $key into CommentStore methods and use MediawikiServices
[lhc/web/wiklou.git] / includes / specials / pagers / DeletedContribsPager.php
index 38a332e..8a76efb 100644 (file)
@@ -69,7 +69,7 @@ class DeletedContribsPager extends IndexPager {
                                ' != ' . Revision::SUPPRESSED_USER;
                }
 
-               $commentQuery = CommentStore::newKey( 'ar_comment' )->getJoin();
+               $commentQuery = CommentStore::getStore()->getJoin( 'ar_comment' );
 
                return [
                        'tables' => [ 'archive' ] + $commentQuery['tables'],
@@ -256,7 +256,7 @@ class DeletedContribsPager extends IndexPager {
                $rev = new Revision( [
                        'title' => $page,
                        'id' => $row->ar_rev_id,
-                       'comment' => CommentStore::newKey( 'ar_comment' )->getComment( $row )->text,
+                       'comment' => CommentStore::getStore()->getComment( 'ar_comment', $row )->text,
                        'user' => $row->ar_user,
                        'user_text' => $row->ar_user_text,
                        'timestamp' => $row->ar_timestamp,