From 1e0e4758f4f197d02a42fc79c10fecf7e28ea2ba Mon Sep 17 00:00:00 2001 From: sharvey Date: Wed, 26 May 2010 04:48:47 +0000 Subject: [PATCH] BUGFIX ss2stat URL not generated correctly (has NULL values) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@105705 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install.php b/install.php index 5ca4462..818cc81 100644 --- a/install.php +++ b/install.php @@ -901,7 +901,7 @@ class Installer extends InstallRequirements { flush(); - if(isset($_POST['stats'])) { + if(isset($config['stats'])) { if(file_exists('sapphire/silverstripe_version')) { $sapphireVersionFile = file_get_contents('sapphire/silverstripe_version'); if(strstr($sapphireVersionFile, "/sapphire/trunk")) { @@ -917,11 +917,11 @@ class Installer extends InstallRequirements { $phpVersion = urlencode(phpversion()); $encWebserver = urlencode($webserver); - if($type == 'MySQLDatabase') { + if($config['db']['type'] == 'MySQLDatabase') { $conn = @mysql_connect($dbConfig['server'], null, null); $databaseVersion = urlencode('MySQLDatabase: ' . mysql_get_server_info()); } else { - $databaseVersion = $type; + $databaseVersion = $config['db']['type']; } $url = "http://ss2stat.silverstripe.com/Installation/add?SilverStripe=$silverstripe_version&PHP=$phpVersion&Database=$databaseVersion&WebServer=$encWebserver";