From 2ed8aa746eda62f1bfb1e063bb608306c49d0415 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 18 Jun 2004 12:16:23 +0000 Subject: [PATCH] moved db user initialization before sysop creation, install fails otherwise as User::saveSettings uses the non-root db connection --- config/index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/index.php b/config/index.php index 0d1381d4a6..6eabb3f9af 100644 --- a/config/index.php +++ b/config/index.php @@ -466,6 +466,11 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { print "
  • Initializing data..."; $wgDatabase->query( "INSERT INTO site_stats (ss_row_id,ss_total_views," . "ss_total_edits,ss_good_articles) VALUES (1,0,0,0)" ); + # setting up the db user + if( $conf->Root ) { + print "
  • Granting user permissions...
  • \n"; + dbsource( "../maintenance/users.sql", $wgDatabase ); + } if( $conf->SysopName ) { $u = User::newFromName( $conf->getSysopName() ); @@ -513,11 +518,6 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { print "
  • ";
     			initialiseMessages();
     			print "
  • \n"; - - if( $conf->Root ) { - print "
  • Granting user permissions...
  • \n"; - dbsource( "../maintenance/users.sql", $wgDatabase ); - } } /* Write out the config file now that all is well */ -- 2.20.1