mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
BUGFIX Fixed installer breaking if stats checkbox unchecked
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@101098 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
f679e398f7
commit
7d152f0c33
@ -808,8 +808,6 @@ class Installer extends InstallRequirements {
|
|||||||
|
|
||||||
$phpVersion = urlencode(phpversion());
|
$phpVersion = urlencode(phpversion());
|
||||||
$encWebserver = urlencode($webserver);
|
$encWebserver = urlencode($webserver);
|
||||||
$type = $config['db']['type'];
|
|
||||||
$dbConfig = $config['db'][$type];
|
|
||||||
|
|
||||||
if($type == 'MySQLDatabase') {
|
if($type == 'MySQLDatabase') {
|
||||||
$conn = @mysql_connect($dbConfig['server'], null, null);
|
$conn = @mysql_connect($dbConfig['server'], null, null);
|
||||||
@ -835,6 +833,9 @@ class Installer extends InstallRequirements {
|
|||||||
}
|
}
|
||||||
$theme = isset($_POST['template']) ? $_POST['template'] : 'blackcandy';
|
$theme = isset($_POST['template']) ? $_POST['template'] : 'blackcandy';
|
||||||
$locale = isset($_POST['locale']) ? $_POST['locale'] : 'en_US';
|
$locale = isset($_POST['locale']) ? $_POST['locale'] : 'en_US';
|
||||||
|
$type = $config['db']['type'];
|
||||||
|
$dbConfig = $config['db'][$type];
|
||||||
|
|
||||||
// Write the config file
|
// Write the config file
|
||||||
global $usingEnv;
|
global $usingEnv;
|
||||||
if($usingEnv) {
|
if($usingEnv) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user