mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 15:05:33 +00:00
BUGFIX #2903 - Fix rewritebase for windows
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@64155 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
056bc59ec8
commit
2f8b502bda
@ -456,9 +456,9 @@ class InstallRequirements {
|
||||
$this->warning($testDetails);
|
||||
} else {
|
||||
list($majorRequested, $minorRequested) = explode('.', $version);
|
||||
$result = mysql_query('SELECT VERSION()');
|
||||
$row=mysql_fetch_row($result);
|
||||
$version = ereg_replace("([A-Za-z-])", "", $row[0]);
|
||||
$result = mysql_query('SELECT VERSION()');
|
||||
$row=mysql_fetch_row($result);
|
||||
$version = ereg_replace("([A-Za-z-])", "", $row[0]);
|
||||
list($majorHas, $minorHas) = explode('.', substr(trim($version), 0, 3));
|
||||
|
||||
if(($majorHas > $majorRequested) || ($majorHas == $majorRequested && $minorHas >= $minorRequested)) {
|
||||
@ -804,7 +804,10 @@ PHP
|
||||
function createHtaccess() {
|
||||
$start = "### SILVERSTRIPE START ###\n";
|
||||
$end = "\n### SILVERSTRIPE END ###";
|
||||
|
||||
$base = dirname($_SERVER['SCRIPT_NAME']);
|
||||
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