BUGFIX: Remove hacky mucking with chdir() and $_SERVER - they're no longer necessary

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@97732 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2010-01-28 05:53:03 +00:00 committed by Sam Minnee
parent a007499548
commit b7fb4b028e
1 changed files with 0 additions and 8 deletions

View File

@ -60,12 +60,4 @@ if($url && file_exists($fileName)) {
die();
}
// For linux
$_SERVER['SCRIPT_FILENAME'] = str_replace('/index.php','/sapphire/main.php', $_SERVER['SCRIPT_FILENAME']);
$_SERVER['SCRIPT_NAME'] = str_replace('/index.php','/sapphire/main.php', $_SERVER['SCRIPT_NAME']);
// And for windows
$_SERVER['SCRIPT_FILENAME'] = str_replace('\\index.php','\\sapphire\\main.php', $_SERVER['SCRIPT_FILENAME']);
$_SERVER['SCRIPT_NAME'] = str_replace('\\index.php','\\sapphire\\main.php', $_SERVER['SCRIPT_NAME']);
chdir('sapphire');
require_once('sapphire/main.php');