From 777c6dad44274b578d599818cedd2fba0b222e5d Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Tue, 27 Oct 2015 22:01:54 -0400 Subject: [PATCH] Fix CLI installer when --dbname is not specified on command line. When installing without an explicit `--dbname` argument on the command line, the database is installed with the default value of $wgDBname from DefaultSettings.php (which is `my_wiki`), but then the LocalSettings.php file is written with the line: $wgDBname = ""; which overrides the default value and makes the wiki unable to connect to the database created by the installer. Adding `wgDBname` to the `$defaultVarNames` list fixes this problem. Change-Id: I3792be9675aabe00b5497ed4203b12b89da8dc3a --- includes/installer/Installer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index ba0e38ffbc..dd12cea6f9 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -169,6 +169,7 @@ abstract class Installer { 'wgEnotifUserTalk', 'wgEnotifWatchlist', 'wgEmailAuthentication', + 'wgDBname', 'wgDBtype', 'wgDiff3', 'wgImageMagickConvertCommand', -- 2.20.1