X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fspecials%2Fpagers%2FProtectedPagesPager.php;h=3b69698fe70488f714ac643796f757a2a6a4459a;hb=671e5b4d81af60d1e05b7227ac688ad97f193150;hp=af047031951e9c9eeec2e4feff906217596230e9;hpb=095a2a05b2aaccff26d7b871194a4edccd092707;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/pagers/ProtectedPagesPager.php b/includes/specials/pagers/ProtectedPagesPager.php index af04703195..3b69698fe7 100644 --- a/includes/specials/pagers/ProtectedPagesPager.php +++ b/includes/specials/pagers/ProtectedPagesPager.php @@ -234,7 +234,7 @@ class ProtectedPagesPager extends TablePager { LogPage::DELETED_COMMENT, $this->getUser() ) ) { - $value = CommentStore::newKey( 'log_comment' )->getComment( $row )->text; + $value = CommentStore::getStore()->getComment( 'log_comment', $row )->text; $formatted = Linker::formatComment( $value !== null ? $value : '' ); } else { $formatted = $this->msg( 'rev-deleted-comment' )->escaped(); @@ -283,10 +283,14 @@ class ProtectedPagesPager extends TablePager { $conds[] = 'page_namespace=' . $this->mDb->addQuotes( $this->namespace ); } - $commentQuery = CommentStore::newKey( 'log_comment' )->getJoin(); + $commentQuery = CommentStore::getStore()->getJoin( 'log_comment' ); + $actorQuery = ActorMigration::newMigration()->getJoin( 'log_user' ); return [ - 'tables' => [ 'page', 'page_restrictions', 'log_search', 'logging' ] + $commentQuery['tables'], + 'tables' => [ + 'page', 'page_restrictions', 'log_search', + 'logparen' => [ 'logging' ] + $commentQuery['tables'] + $actorQuery['tables'], + ], 'fields' => [ 'pr_id', 'page_namespace', @@ -297,9 +301,8 @@ class ProtectedPagesPager extends TablePager { 'pr_expiry', 'pr_cascade', 'log_timestamp', - 'log_user', 'log_deleted', - ] + $commentQuery['fields'], + ] + $commentQuery['fields'] + $actorQuery['fields'], 'conds' => $conds, 'join_conds' => [ 'log_search' => [ @@ -307,12 +310,12 @@ class ProtectedPagesPager extends TablePager { 'ls_field' => 'pr_id', 'ls_value = ' . $this->mDb->buildStringCast( 'pr_id' ) ] ], - 'logging' => [ + 'logparen' => [ 'LEFT JOIN', [ 'ls_log_id = log_id' ] ] - ] + $commentQuery['joins'] + ] + $commentQuery['joins'] + $actorQuery['joins'] ]; }