From: Tim Starling Date: Tue, 28 Feb 2012 00:14:33 +0000 (+0000) Subject: Fix exception from list=recentchanges rcprop=loginfo: update for new log system X-Git-Tag: 1.31.0-rc.0~24479 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=bf1e9d7;p=lhc%2Fweb%2Fwiklou.git Fix exception from list=recentchanges rcprop=loginfo: update for new log system --- 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() ); }