} else {
if ( isset( $this->prop['groups'] ) && isset( $data[$u]['groups'] ) ) {
$autolist = ApiQueryUsers::getAutoGroups( User::newFromName( $u ) );
-
+
$data[$u]['groups'] = array_merge( $autolist, $data[$u]['groups'] );
-
+
$this->getResult()->setIndexedTagName( $data[$u]['groups'], 'g' );
}
}
}
return $this->getResult()->setIndexedTagName_internal( array( 'query', $this->getModuleName() ), 'user' );
}
-
+
/**
* Gets all the groups that a user is automatically a member of
* @return array