From: Chad Horohoe Date: Mon, 7 Jun 2010 16:33:12 +0000 (+0000) Subject: Save settings after adding the groups, or the groups don't stick X-Git-Tag: 1.31.0-rc.0~36599 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=0674bda69ba26fe0c02511aacd6f522e6974c517;p=lhc%2Fweb%2Fwiklou.git Save settings after adding the groups, or the groups don't stick --- diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 706250642c..376528f8c2 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -900,9 +900,9 @@ abstract class Installer { } catch( PasswordError $pwe ) { return Status::newFatal( 'config-admin-error-password', $name, $pwe->getMessage() ); } - $user->saveSettings(); $user->addGroup( 'sysop' ); $user->addGroup( 'bureaucrat' ); + $user->saveSettings(); } return Status::newGood(); }