1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00

Attempt fix for issue processwire/processwire-issues#206 fix for multi-site config not working

This commit is contained in:
Ryan Cramer
2017-03-10 09:05:08 -05:00
parent b899bc42e7
commit 8b96e6b060

View File

@@ -772,7 +772,6 @@ class ProcessWire extends Wire {
$rootPath = rtrim($rootPath, '/');
$_rootURL = $rootURL;
if(is_null($rootURL)) $rootURL = '/';
$sitePath = $rootPath . "/$siteDir/";
// check what rootPath is referring to
if(strpos($rootPath, "/$siteDir")) {
@@ -834,6 +833,7 @@ class ProcessWire extends Wire {
}
// other default directories
$sitePath = $rootPath . "/$siteDir/";
$wireDir = "wire";
$coreDir = "$wireDir/core";
$assetsDir = "$siteDir/assets";