From 8aff307876b60467b17da18e4845a98758903241 Mon Sep 17 00:00:00 2001 From: Vedmaka Date: Wed, 10 Feb 2021 13:39:44 +0300 Subject: [PATCH] log_user -> log_actor, User::newFromId -> User::newFromActorId --- includes/PendingReview.php | 3 +-- specials/SpecialPendingReviews.php | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/includes/PendingReview.php b/includes/PendingReview.php index cb155e5..3b938d2 100644 --- a/includes/PendingReview.php +++ b/includes/PendingReview.php @@ -270,8 +270,7 @@ public function getDeletionLog( $title, $ns, $notificationTimestamp ) { 'l.log_type', 'l.log_action', 'l.log_timestamp', - 'l.log_user', - 'l.log_user_text', + 'l.log_actor', 'l.log_namespace', 'l.log_title', 'l.log_page', diff --git a/specials/SpecialPendingReviews.php b/specials/SpecialPendingReviews.php index 16a5fb0..b936c25 100644 --- a/specials/SpecialPendingReviews.php +++ b/specials/SpecialPendingReviews.php @@ -661,8 +661,8 @@ public function getDeleterTalkButton( array $deletionLog ) { return ''; } - $userId = $deletionLog[ count( $deletionLog ) - 1 ]->log_user; - $user = User::newFromId( $userId ); + $userId = $deletionLog[ count( $deletionLog ) - 1 ]->log_actor; + $user = User::newFromActorId( $userId ); $userTalk = $user->getTalkPage(); @@ -874,7 +874,7 @@ protected function getLogChangeMessage( $logEntry ) { ]; // get user page of user who created the log entry - $userPage = Title::makeTitle( NS_USER, $logEntry->log_user_text )->getFullText(); + $userPage = User::newFromActorId( $logEntry->log_actor )->getUserPage()->getFullText(); // if a message exists for the particular log type, handle it as follows if ( isset( $messages[ $logEntry->log_type ][ $logEntry->log_action ] ) ) {