Skip to content
Browse files

BUGFIX ss2stat URL not generated correctly (has NULL values) (from r1…

…05705)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112392 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 820c49e commit 66dfdb97c7cd2a950ecbb2268fd5738b5304134a sminnee committed Oct 15, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 install.php
View
6 install.php
@@ -901,7 +901,7 @@ function install($config) {
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 @@ function install($config) {
$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";

0 comments on commit 66dfdb9

Please sign in to comment.
Something went wrong with that request. Please try again.