Change LogEventsList to use query info from DatabaseLogEntry.
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 8 Sep 2011 08:46:39 +0000 (08:46 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 8 Sep 2011 08:46:39 +0000 (08:46 +0000)
commit824a1231866cecf4dd1514f67ca32354eabd5ab3
tree726d13a5a8b15fbe7d9771281e7b040a07848664
parentc229411ddae9baa317aaf20f8920524ebf05da1c
Change LogEventsList to use query info from DatabaseLogEntry.
The only changes in the query are:
* New fields: log_user_text, user_id
* INNER JOIN on user table is changed to LEFT JOIN
* AND (user_id = log_user) is dropped from WHERE conditions (looks redundant, easy to add back if needed)

This means that log entries from anonymous users are not dropped anymore.
Those will actually get displayed correctly after the next commit.
It is also possible to use User::newFromRow for non-anonymous users now.
includes/LogEventsList.php