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