Fix exception from list=recentchanges rcprop=loginfo: update for new log system

This commit is contained in:
Tim Starling 2012-02-28 00:14:33 +00:00
parent aa61ae7ef7
commit bf1e9d76ad

View file

@ -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()
);
}