From dcc0f1b4626660dea327b2ac1fe367ffe851d671 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 29 May 2005 10:03:03 +0000 Subject: [PATCH] Don't save group definitions; they use global variables which have been disappeared, and cause failure of installation. On the other hand, the created sysop user doesn't seem to have any useful permissions now. --- config/index.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/config/index.php b/config/index.php index 3053d8d604..1a94942af8 100644 --- a/config/index.php +++ b/config/index.php @@ -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 "
  • Created sysop account " . htmlspecialchars( $conf->SysopName ) . ".
  • \n"; } else { -- 2.20.1