mirror of
https://github.com/oqtane/oqtane.framework.git
synced 2025-05-28 07:43:06 +00:00
Merge pull request #369 from mikecasas/fix-site-template
Fix empty string for default site template.
This commit is contained in:
commit
6ea641014e
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user