Serve a default starter kit if the version is higher than 7.6.4
This commit is contained in:
@@ -105,6 +105,7 @@
|
||||
<add key="SpamBlockThreshold" value="90" />
|
||||
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
|
||||
<add key="UmbracoStarterKits" value="55E028E3-0C5B-4188-9722-7D14B4BD12C0,69E44BEB-15FF-4CEE-8B64-0A7DAE498657,0B0101F7-9394-48F3-A581-DD3F18480265" />
|
||||
<add key="UmbracoStarterKitDefault" value="ced954d1-8c0f-4abe-bdda-99e7a787d052"/>
|
||||
|
||||
<add key="SlackChannel" value="#our-spam-reports" />
|
||||
<add key="SlackToken" value="" />
|
||||
|
||||
@@ -60,6 +60,16 @@ namespace OurUmbraco.Repository.Controllers
|
||||
var starterKits = new List<StarterKit>();
|
||||
var allConfiguredVersions = UWikiFileVersion.GetAllVersions();
|
||||
|
||||
// for 7.6.4+ we change behavior and only provide one starter kit
|
||||
if (version >= new System.Version(7, 6, 4))
|
||||
{
|
||||
officialStarterKitGuidCollection = new List<string>
|
||||
{
|
||||
ConfigurationManager.AppSettings["UmbracoStarterKitDefault"]
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
foreach (var umbracoNode in umbracoNodes)
|
||||
{
|
||||
// If it's not in the official list, move on to the next package
|
||||
|
||||
Reference in New Issue
Block a user