Fix bug 12021 - Provide additional links on Special:Listusers
authorMark A. Hershberger <mah@users.mediawiki.org>
Fri, 10 Feb 2012 19:10:29 +0000 (19:10 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Fri, 10 Feb 2012 19:10:29 +0000 (19:10 +0000)
Patch from John N.

CREDITS
includes/specials/SpecialListusers.php

diff --git a/CREDITS b/CREDITS
index 5787994..3c6b57d 100644 (file)
--- 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
index d743712..49a03eb 100644 (file)
@@ -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 "<li>{$item}{$edits}{$created}</li>";
+               return "<li>{$item}{$edits}{$talk}{$created}</li>";
        }
 
        function getBody() {