Skip to content

Commit 0dffccb

Browse files
Attempt fix for issue processwire/processwire-issues#206 fix for multi-site config not working
1 parent a5e1871 commit 0dffccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/ProcessWire.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,6 @@ public static function buildConfig($rootPath, $rootURL = null, array $options =
772772
$rootPath = rtrim($rootPath, '/');
773773
$_rootURL = $rootURL;
774774
if(is_null($rootURL)) $rootURL = '/';
775-
$sitePath = $rootPath . "/$siteDir/";
776775

777776
// check what rootPath is referring to
778777
if(strpos($rootPath, "/$siteDir")) {
@@ -834,6 +833,7 @@ public static function buildConfig($rootPath, $rootURL = null, array $options =
834833
}
835834

836835
// other default directories
836+
$sitePath = $rootPath . "/$siteDir/";
837837
$wireDir = "wire";
838838
$coreDir = "$wireDir/core";
839839
$assetsDir = "$siteDir/assets";

0 commit comments

Comments
 (0)