Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
charrondev committed Sep 8, 2023
1 parent 0b81968 commit 0cb3dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Local/LocalSiteProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ protected function loadAllSiteRecords(): array
}

$siteRecord = new SiteRecord($siteID, $accountID, $clusterID, $baseUrl);
$configPath = str_replace($this->siteConfigFsBasePath, "", $configPath);
$siteRecord->setExtra("configPath", $configPath);

$siteRecordsBySiteID[$siteRecord->getSiteID()] = $siteRecord;
Expand All @@ -94,7 +95,7 @@ public function getSite(int $siteID): LocalSite

$configPath = $siteRecord->getExtra("configPath") ?? "";

$localSite = new LocalSite($configPath, $siteRecord, $this, new CurlHandler());
$localSite = new LocalSite($this->siteConfigFsBasePath . $configPath, $siteRecord, $this, new CurlHandler());
return $localSite;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/LocalSitesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function testSerializeSite(): void
"siteID": 101,
"baseUrl": "http:\/\/vanilla.localhost\/valid",
"clusterID": "cl00000",
"configPath": "\/Users\/acharron\/git\/vnla\/garden-sites\/tests\/configs\/vanilla.localhost\/valid.php"
"configPath": "\/vanilla.localhost\/valid.php"
}
JSON;

Expand Down

0 comments on commit 0cb3dfa

Please sign in to comment.