mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
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
This commit is contained in:
parent
00b4c68ce5
commit
1e0e4758f4
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user