mirror of
https://github.com/processwire/processwire.git
synced 2025-08-19 13:01:26 +02:00
Fix issue processwire/processwire-issues#518 where multi-instance + multi-site had boot error in Windows
This commit is contained in:
@@ -781,7 +781,7 @@ class ProcessWire extends Wire {
|
|||||||
$testDir = array_pop($parts);
|
$testDir = array_pop($parts);
|
||||||
if(($testDir === $siteDir || strpos($testDir, 'site-') === 0) && is_file("$rootPath/config.php")) {
|
if(($testDir === $siteDir || strpos($testDir, 'site-') === 0) && is_file("$rootPath/config.php")) {
|
||||||
// rootPath was given as a /site/ directory rather than root directory
|
// rootPath was given as a /site/ directory rather than root directory
|
||||||
$rootPath = '/' . implode('/', $parts); // remove siteDir from rootPath
|
$rootPath = implode('/', $parts); // remove siteDir from rootPath
|
||||||
$siteDir = $testDir; // set proper siteDir
|
$siteDir = $testDir; // set proper siteDir
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user