|
@@ -445,6 +445,9 @@ class OtWebsiteRepository
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ $website = $this->getWebsiteByPageUid($rootUid);
|
|
|
|
|
+ $organizationId = $website['organization_id'];
|
|
|
|
|
+
|
|
|
$candidates = array_filter(
|
|
$candidates = array_filter(
|
|
|
scandir($configs_directory),
|
|
scandir($configs_directory),
|
|
|
function ($x) { return $x != '.' && $x != '..'; }
|
|
function ($x) { return $x != '.' && $x != '..'; }
|
|
@@ -452,7 +455,7 @@ class OtWebsiteRepository
|
|
|
|
|
|
|
|
// try to filter by directory name
|
|
// try to filter by directory name
|
|
|
foreach ($candidates as $subdir) {
|
|
foreach ($candidates as $subdir) {
|
|
|
- if (preg_match('/\.*_' . $rootUid . '$/', $subdir)) {
|
|
|
|
|
|
|
+ if (preg_match('/\.*_' . $organizationId . '$/', $subdir)) {
|
|
|
$filename = $configs_directory . $subdir . '/config.yaml';
|
|
$filename = $configs_directory . $subdir . '/config.yaml';
|
|
|
try {
|
|
try {
|
|
|
$yamlConfig = Yaml::parseFile($filename);
|
|
$yamlConfig = Yaml::parseFile($filename);
|