* (bug 2825) Fix regression in newtalk notifications for anons w/ enotif off
* (bug 2833) Fix bug in previous fix
* With $wgCapitalLinks off, accept off-by-first-letter-case in 'go' match
-
+* Optional parameters for [[Special:Listusers]]
+* (bug 2832) [[Special:Listadmins]] redirects to [[Special:Listusers/sysop]]
=== Caveats ===
/**
* constructor
+ * $par string (optional) A group to list users from
*/
-function wfSpecialListusers() {
+function wfSpecialListusers( $par = null ) {
global $wgRequest;
list( $limit, $offset ) = wfCheckLimits();
+
$slu = new ListUsersPage();
/**
* Get some parameters
*/
- $slu->requestedGroup = $wgRequest->getVal('group');
+ $groupTarget = isset($par) ? $par : $wgRequest->getVal( 'group' );
+ $slu->requestedGroup = $groupTarget;
$slu->requestedUser = $wgRequest->getVal('username');
return $slu->doQuery( $offset, $limit );
case 'Mycontributions':
return Title::makeTitle( NS_SPECIAL, 'Contributions/' . $wgUser->getName() );
case 'Listadmins':
- return Title::makeTitle( NS_SPECIAL, 'Listusers' );
+ return Title::makeTitle( NS_SPECIAL, 'Listusers/'.'sysop' ); # bug 2832
case 'Randompage':
return Title::makeTitle( NS_SPECIAL, 'Random' );
default: