the timestamp of the last edit
* (bug 24677) axto= parameters added to allcategories, allimages, alllinks, allmessages,
allpages, and allusers
+* (bug 24236) Add add, remove, add-self, remove-self tags to meta=siteinfo&siprop=usergroups
=== Languages updated in 1.17 ===
}
protected function appendUserGroups( $property, $numberInGroup ) {
- global $wgGroupPermissions;
+ global $wgGroupPermissions, $wgAddGroups, $wgRemoveGroups, $wgGroupsAddToSelf, $wgGroupsRemoveFromSelf;
+
$data = array();
foreach ( $wgGroupPermissions as $group => $permissions ) {
$arr = array(
if ( $numberInGroup ) {
$arr['number'] = SiteStats::numberInGroup( $group );
}
-
+
+ $groupArr = array(
+ 'add' => &$wgAddGroups,
+ 'remove' => &$wgRemoveGroups,
+ 'add-self' => &$wgGroupsAddToSelf,
+ 'remove-self' => &$wgGroupsRemoveFromSelf
+ );
+
+ foreach( $groupArr as $type => $rights ) {
+ if( isset( $rights[$group] ) ) {
+ $arr[$type] = $rights[$group];
+ $this->getResult()->setIndexedTagName( $arr[$type], 'group' );
+ }
+ }
+
$this->getResult()->setIndexedTagName( $arr['rights'], 'permission' );
$data[] = $arr;
}
-
+
$this->getResult()->setIndexedTagName( $data, 'group' );
return $this->getResult()->addValue( 'query', $property, $data );
}