/**
* Save user groups changes in the database.
- * Datas comes from the editUserGroupsForm() form function
+ * Data comes from the editUserGroupsForm() form function
*
* @param string $username Username to apply changes to.
* @param array $removegroup id of groups to be removed.
*
*/
function saveUserGroups($username,$removegroup,$addgroup) {
- $u = User::NewFromName($username);
+ $u = User::newFromName($username);
if(is_null($u)) {
$wgOut->addHTML('<p>'.wfMsg('nosuchusershort',$username).'</p>');