From bf1e9d76ad4776ad5d9f6f5b662b418bbf4b1acd Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 28 Feb 2012 00:14:33 +0000 Subject: [PATCH] Fix exception from list=recentchanges rcprop=loginfo: update for new log system --- includes/api/ApiQueryRecentChanges.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 7ddf67021a..0ce5b37330 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -423,13 +423,14 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { $vals['logid'] = intval( $row->rc_logid ); $vals['logtype'] = $row->rc_log_type; $vals['logaction'] = $row->rc_log_action; + $logEntry = DatabaseLogEntry::newFromRow( (array)$row ); ApiQueryLogEvents::addLogParams( $this->getResult(), $vals, - $row->rc_params, - $row->rc_log_action, - $row->rc_log_type, - $row->rc_timestamp + $logEntry->getParameters(), + $logEntry->getType(), + $logEntry->getSubtype(), + $logEntry->getTimestamp() ); } -- 2.20.1