From: umherirrender Date: Sat, 12 Apr 2014 20:40:52 +0000 (+0200) Subject: Fix RevDel_RevisionItem::getAuthorNameField to work for ips X-Git-Tag: 1.31.0-rc.0~16008^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=935d2fa863f07cae158ffb6cd9dd2cd698870d98;p=lhc%2Fweb%2Fwiklou.git 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 --- diff --git a/includes/revisiondelete/RevisionDelete.php b/includes/revisiondelete/RevisionDelete.php index 0553880e98..dcec5ddb94 100644 --- a/includes/revisiondelete/RevisionDelete.php +++ b/includes/revisiondelete/RevisionDelete.php @@ -167,7 +167,7 @@ class RevDel_RevisionItem extends RevDel_Item { } public function getAuthorNameField() { - return 'user_name'; // see Revision::selectUserFields() + return 'rev_user_text'; } public function canView() {