Fix RevDel_RevisionItem::getAuthorNameField to work for ips
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 12 Apr 2014 20:40:52 +0000 (22:40 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Thu, 24 Apr 2014 21:12:58 +0000 (21:12 +0000)
commit935d2fa863f07cae158ffb6cd9dd2cd698870d98
treee6a9a0ea605407fb335f4d255e6598a9b7e05038
parent1c724cf83e00aa04ad241ad01f13b947b48574ec
Fix RevDel_RevisionItem::getAuthorNameField to work for ips

The user_name column in the database result is null for anon users,
that will always return null when calling getAuthorName.

The function getAuthorName is used when the log_search table is filled
for revision deletion. After this fix the value for 'target_author_ip'
will be there which allows searching for logs where edits of the ip was
suppressed (because the search field 'offender' only works for oversighter)

Change-Id: I611bc56eefac594a28ad4808fe7d9ba48c872922
includes/revisiondelete/RevisionDelete.php