1
0
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:
Ryan Cramer
2018-03-08 08:58:15 -05:00
parent 786a4b8309
commit bd3be5e315

View File

@@ -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
} }
} }