Merge pull request #369 from mikecasas/fix-site-template

Fix empty string for default site template.
This commit is contained in:
Shaun Walker 2020-04-14 12:13:10 -04:00 committed by GitHub
commit 6ea641014e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -596,7 +596,13 @@ namespace Oqtane.Repository
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
{