mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
BUGFIX Send the database in use (not just the MySQL version) to ss2stats in installer
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@98782 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
a5cd285a16
commit
3edb9bc973
10
install.php
10
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";
|
||||
|
Loading…
Reference in New Issue
Block a user