Merge pull request #26 from Madoushi90/master

Fix for nice url test
This commit is contained in:
Shish Moom 2011-08-01 02:35:43 -07:00
commit 5dd4c29d56

View File

@ -216,7 +216,15 @@ class Setup extends SimpleExtension {
$themes[$human] = $name;
}
$full = "http://" . $_SERVER["SERVER_NAME"] . $_SERVER["PHP_SELF"];
if(isset($_SERVER["HTTP_HOST"])) {
$host = $_SERVER["HTTP_HOST"];
} else {
$host = $_SERVER["SERVER_NAME"];
if($_SERVER["SERVER_PORT"] != "80") {
$host .= ":" . $_SERVER["SERVER_PORT"];
}
}
$full = "http://" . $host . $_SERVER["PHP_SELF"];
$test_url = str_replace("/index.php", "/nicetest", $full);
$nicescript = "<script language='javascript'>