BUGFIX #2903: Fix RewriteBase generation on window

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@64212 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2008-10-14 04:16:26 +00:00
parent 2f8b502bda
commit 4e0fba8401

View File

@ -806,7 +806,7 @@ PHP
$end = "\n### SILVERSTRIPE END ###";
$base = dirname($_SERVER['SCRIPT_NAME']);
if(defined('DIRECTORY_SEPARATOR')) $base = str_replace('/',DIRECTORY_SEPARATOR, $base);
if(defined('DIRECTORY_SEPARATOR')) $base = str_replace(DIRECTORY_SEPARATOR, '/', $base);
if($base != '.') $baseClause = "RewriteBase $base\n";
else $baseClause = "";