Merge pull request #4 from oqtane/master

sync
This commit is contained in:
Shaun Walker 2020-04-14 12:13:59 -04:00 committed by GitHub
commit de5eeb08c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -593,10 +593,16 @@ namespace Oqtane.Repository
// process site template
if (string.IsNullOrEmpty(site.SiteTemplateType))
{
var section = _config.GetSection("SiteTemplate");
var section = _config.GetSection("Installation:SiteTemplate");
if (section.Exists())
{
site.SiteTemplateType = section.Value;
if(string.IsNullOrEmpty(section.Value)){
site.SiteTemplateType = Constants.DefaultSiteTemplate;
}
else
{
site.SiteTemplateType = section.Value;
}
}
else
{