From bd3be5e315c750c0468426f5a6abfaa80481af31 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 8 Mar 2018 08:58:15 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#518 where multi-instance + multi-site had boot error in Windows --- wire/core/ProcessWire.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wire/core/ProcessWire.php b/wire/core/ProcessWire.php index a708019d..144d3a18 100644 --- a/wire/core/ProcessWire.php +++ b/wire/core/ProcessWire.php @@ -781,7 +781,7 @@ class ProcessWire extends Wire { $testDir = array_pop($parts); if(($testDir === $siteDir || strpos($testDir, 'site-') === 0) && is_file("$rootPath/config.php")) { // 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 } }