mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
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:
parent
2f8b502bda
commit
4e0fba8401
@ -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 = "";
|
||||
|
Loading…
x
Reference in New Issue
Block a user