From: Mark A. Hershberger Date: Fri, 10 Feb 2012 19:10:29 +0000 (+0000) Subject: Fix bug 12021 - Provide additional links on Special:Listusers X-Git-Tag: 1.31.0-rc.0~24796 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=6a101d444974e485feb529292aa69e8cf4243396;p=lhc%2Fweb%2Fwiklou.git Fix bug 12021 - Provide additional links on Special:Listusers Patch from John N. --- 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() {