Don't save group definitions; they use global variables which have been disappeared...
[lhc/web/wiklou.git] / config / index.php
index 3053d8d..1a94942 100644 (file)
@@ -589,16 +589,6 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) {
                                        $u->addRight( "bureaucrat" );
                                        $u->saveSettings();
                                        
-                                       # Set up the new user in the sysop group
-                                       # This is a bit of an ugly hack
-                                       global $wgSysopGroupId, $wgBureaucratGroupId;
-                                       $groups = $u->getGroups();
-                                       $groups[] = $wgSysopGroupId;
-                                       $groups[] = $wgBureaucratGroupId;
-                                       $groups[] = $wgStewardGroupId;
-                                       $u->setGroups( $groups );
-                                       $u->saveSettings();
-                                       
                                        print "<li>Created sysop account <tt>" .
                                                htmlspecialchars( $conf->SysopName ) . "</tt>.</li>\n";
                                } else {