Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralph Bryan Brioso committed May 8, 2020
2 parents fd0d891 + 77f5d34 commit 39cd6c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Service/MelisSiteConfigService.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ public function getSiteConfigByPageId($pageId, $langLocale = false)
$langId = $siteLangData->lang_cms_id;
}
} else {
$siteConfig['siteConfig'] = $config['site'][$siteName][$siteId][$langData['lang_cms_locale']];
$langId = $langData['lang_cms_id'];
foreach($langData as $val) {
$siteConfig['siteConfig'] = $config['site'][$siteName][$siteId][$val['lang_cms_locale']];
$langId = $val['lang_cms_id'];
}
}
$siteConfig['siteConfig']['site_id'] = $siteId;
$siteConfig['siteConfig']['default_lang_id'] = $langId;
Expand All @@ -158,6 +160,7 @@ public function getSiteConfigByPageId($pageId, $langLocale = false)
}
}
}

$arrayParameters['result'] = $siteConfig;
// Save cache key
$melisEngineCacheSystem->setCacheByKey($cacheKey, $cacheConfig, $arrayParameters['result']);
Expand Down

0 comments on commit 39cd6c1

Please sign in to comment.