From 6a101d444974e485feb529292aa69e8cf4243396 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Fri, 10 Feb 2012 19:10:29 +0000 Subject: [PATCH] Fix bug 12021 - Provide additional links on Special:Listusers Patch from John N. --- CREDITS | 1 + includes/specials/SpecialListusers.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CREDITS b/CREDITS index 5787994cad..3c6b57de7b 100644 --- a/CREDITS +++ b/CREDITS @@ -117,6 +117,7 @@ following names for their contribution to the product. * Jidanni * Jimmy Xu * Jonathan Wiltshire +* John N * Karun Dambietz * Kim Hyun-Joon * Lee Worden diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index d743712dc9..49a03ebb38 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -157,6 +157,10 @@ class UsersPager extends AlphabeticPager { $edits = ''; } + global $wgLang; + $userTalkPage = $userPage->getTalkPage(); + $talk = ' (' . Linker::link( $userTalkPage, $wgLang->getMessage( 'talkpagelinktext' ) ) . ')'; + $created = ''; # Some rows may be NULL if( $row->creation ) { @@ -166,7 +170,7 @@ class UsersPager extends AlphabeticPager { } wfRunHooks( 'SpecialListusersFormatRow', array( &$item, $row ) ); - return "
  • {$item}{$edits}{$created}
  • "; + return "
  • {$item}{$edits}{$talk}{$created}
  • "; } function getBody() { -- 2.20.1