Fix empty string for default site template.
This commit is contained in:
parent
932fc97638
commit
57aa8b6cbd
@ -595,9 +595,15 @@ namespace Oqtane.Repository
|
||||
{
|
||||
var section = _config.GetSection("Installation:SiteTemplate");
|
||||
if (section.Exists())
|
||||
{
|
||||
if(string.IsNullOrEmpty(section.Value)){
|
||||
site.SiteTemplateType = Constants.DefaultSiteTemplate;
|
||||
}
|
||||
else
|
||||
{
|
||||
site.SiteTemplateType = section.Value;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
site.SiteTemplateType = Constants.DefaultSiteTemplate;
|
||||
|
Reference in New Issue
Block a user