Fix CLI installer when --dbname is not specified on command line.
authorC. Scott Ananian <cscott@cscott.net>
Wed, 28 Oct 2015 02:01:54 +0000 (22:01 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Wed, 28 Oct 2015 02:01:54 +0000 (22:01 -0400)
commit777c6dad44274b578d599818cedd2fba0b222e5d
tree5ca81d7554d07633b311c634f5c7f42e7f65d28e
parent50109405df83f258884c33156fc934da581e6a63
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