(bug 17692) Added (list of members) link to 'user' in Special:Listgrouprights
authorPurodha B Blissenbach <purodha@users.mediawiki.org>
Fri, 27 Feb 2009 07:13:37 +0000 (07:13 +0000)
committerPurodha B Blissenbach <purodha@users.mediawiki.org>
Fri, 27 Feb 2009 07:13:37 +0000 (07:13 +0000)
RELEASE-NOTES
includes/specials/SpecialListgrouprights.php

index 3e40a01..127bb01 100644 (file)
@@ -223,6 +223,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 17460) Client ecoding is now correctly set for PostgreSQL
 * (bug 17648) Prevent floats from intruding into edit area in previews if no toolbar present
 * (bug 16899) DISPLAYTITLE should allow Arabic and Persian harakats
+* (bug 17692) Added (list of members) link to 'user' in Special:Listgrouprights
 
 == API changes in 1.15 ==
 * (bug 16858) Revamped list=deletedrevs to make listing deleted contributions
@@ -345,4 +346,4 @@ going to run a public MediaWiki, so you can be notified of security fixes.
 
 === IRC help ===
 
-There's usually someone online in #mediawiki on irc.freenode.net
\ No newline at end of file
+There's usually someone online in #mediawiki on irc.freenode.net
index 5c76df8..d1fc081 100644 (file)
@@ -63,10 +63,13 @@ class SpecialListGroupRights extends SpecialPage {
                                $grouppage = $this->skin->makeLink( $grouppageLocalized, $groupnameLocalized );
                        }
 
-                       if ( !in_array( $group, $wgImplicitGroups ) ) {
+                       if ( $group === 'user' ) {
+                               // Link to Special:listusers for implicit group 'user'
+                               $grouplink = '<br />' . $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Listusers' ), wfMsgHtml( 'listgrouprights-members' ), ''  );
+                       } elseif ( !in_array( $group, $wgImplicitGroups ) ) {
                                $grouplink = '<br />' . $this->skin->makeKnownLinkObj( SpecialPage::getTitleFor( 'Listusers' ), wfMsgHtml( 'listgrouprights-members' ), 'group=' . $group );
                        } else {
-                               // No link to Special:listusers for implicit groups as they are unlistable
+                               // No link to Special:listusers for other implicit groups as they are unlistable
                                $grouplink = '';
                        }