From 3c8aba8ed49776d8ba99af7ec7ba379a094d34d1 Mon Sep 17 00:00:00 2001 From: sminnee Date: Wed, 13 Oct 2010 02:43:05 +0000 Subject: [PATCH] BUGFIX Send the database in use (not just the MySQL version) to ss2stats in installer (from r98782) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112097 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index 6e15bc2..0005e62 100644 --- a/install.php +++ b/install.php @@ -908,8 +908,14 @@ class Installer extends InstallRequirements { } $phpVersion = urlencode(phpversion()); - $conn = @mysql_connect($config['db']['server'], null, null); - $databaseVersion = urlencode('MySQL ' . mysql_get_server_info()); + + if($config['db']['type'] == 'MySQLDatabase') { + $conn = mysql_connect($config['db']['server'], null, null); + $databaseVersion = urlencode('MySQLDatabase: ' . mysql_get_server_info()); + } else { + $databaseVersion = $config['db']['type']; + } + $webserver = urlencode($_SERVER['SERVER_SOFTWARE']); $url = "http://ss2stat.silverstripe.com/Installation/add?SilverStripe=$silverstripe_version&PHP=$phpVersion&Database=$databaseVersion&WebServer=$webserver";