Skip to content

Commit

Permalink
BUGFIX #2903: Fix RewriteBase generation on window
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@64212 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
sminnee committed Oct 14, 2008
1 parent 2f8b502 commit 4e0fba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.php
Expand Up @@ -806,7 +806,7 @@ function createHtaccess() {
$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 = "";
Expand Down

0 comments on commit 4e0fba8

Please sign in to comment.