mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 03:58:13 +08:00
Fixing Setup
--HG-- branch : 1.x
This commit is contained in:
@@ -124,9 +124,9 @@ namespace Orchard.Setup.Controllers {
|
||||
|
||||
// redirect to the welcome page.
|
||||
return Redirect("~/");
|
||||
} catch (Exception) {
|
||||
Logger.Error(T("Setup failed:").Text);
|
||||
_notifier.Error(T("Setup failed:"));
|
||||
} catch (Exception ex) {
|
||||
Logger.Error(ex, "Setup failed");
|
||||
_notifier.Error(T("Setup failed: {0}", ex.Message));
|
||||
|
||||
model.Recipes = recipes;
|
||||
foreach (var recipe in recipes.Where(recipe => recipe.Name == model.Recipe)) {
|
||||
|
||||
@@ -79,9 +79,7 @@ namespace Orchard.Setup.Services {
|
||||
"PackagingServices", "Orchard.Packaging", "Gallery", "Orchard.Recipes",
|
||||
};
|
||||
|
||||
if (context.EnabledFeatures != null) {
|
||||
context.EnabledFeatures = hardcoded.Union(context.EnabledFeatures).Distinct();
|
||||
}
|
||||
context.EnabledFeatures = hardcoded.Union(context.EnabledFeatures ?? Enumerable.Empty<string>()).Distinct();
|
||||
|
||||
var shellSettings = new ShellSettings(_shellSettings);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user