From 53a77a14534e18577e12082d2cb83c40aeb11926 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 26 Aug 2009 18:56:00 +0000 Subject: [PATCH] Partial revert of r53664 (bug 14201 Set $wgDBadminuser/$wgDBadminpassword during setup). Gives Brion icky feelings about setting a root password. --- RELEASE-NOTES | 1 - config/Installer.php | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2a9249bd06..1648f6477e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -151,7 +151,6 @@ this. Was used when mwEmbed was going to be an extension. * If config/ directory is not executable, the command to make it executable now asks the user to cd to the correct directory * Add experimental new external authentication framework, ExternalAuth -* (bug 14201) Set $wgDBadminuser/$wgDBadminpassword during setup * (bug 18768) Remove AdminSettings requirements. Maintenance environment will still load it if it exists, but it's not required for anything * (bug 19900) The "listgrouprights-key" message is now wrapped in a div with diff --git a/config/Installer.php b/config/Installer.php index 4967790f59..6d54d866c6 100644 --- a/config/Installer.php +++ b/config/Installer.php @@ -621,7 +621,6 @@ print "
  • Environment check $conf->RootUser = importPost( "RootUser", "root" ); $conf->RootPW = importPost( "RootPW", "" ); $useRoot = importCheck( 'useroot', false ); - $conf->populateadmin = importCheck( 'populateadmin', false ); $conf->LanguageCode = importPost( "LanguageCode", "en" ); ## MySQL specific: $conf->DBprefix = importPost( "DBprefix" ); @@ -1557,8 +1556,6 @@ if( count( $errs ) ) { checked="checked" />   - populateadmin ) { ?>checked="checked" /> -  
    @@ -1824,11 +1821,6 @@ function writeLocalSettings( $conf ) { # Needs literal string interpolation for the current style path $slconf['RightsIcon'] = $conf->RightsIcon; } - - if( $conf->populateadmin ) { - $slconf['DBadminuser'] = $conf->RootUser; - $slconf['DBadminpassword'] = $conf->RootPW; - } if( $conf->DBtype == 'mysql' ) { $dbsettings = @@ -1933,10 +1925,6 @@ if ( \$wgCommandLineMode ) { {$dbsettings} -## Database admin settings, used for maintenance scripts -\$wgDBadminuser = \"". ($conf->populateadmin ? $slconf['DBadminuser'] : '' )."\"; -\$wgDBadminpassword = \"". ($conf->populateadmin ? $slconf['DBadminpassword'] : '' )."\"; - ## Shared memory settings \$wgMainCacheType = $cacheType; \$wgMemCachedServers = $mcservers; -- 2.20.1