From 2a13c106a35c6062d223cacc94be408223ba9273 Mon Sep 17 00:00:00 2001 From: Suha Can Date: Sat, 12 Feb 2011 15:10:49 -0800 Subject: [PATCH] Reach out to the RecipeManager in the tenant shell to execute context.Recipe Fixing a comment. --HG-- branch : recipe --- .../Modules/Orchard.Setup/Controllers/SetupController.cs | 2 +- src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs b/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs index 1e7dcedce..49bba214e 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs +++ b/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs @@ -47,7 +47,7 @@ namespace Orchard.Setup.Controllers { // will take a while to finish (user inputting data and the setup process itself). // We use this opportunity to start a background task to "pre-compile" all the known // views in the app folder, so that the application is more reponsive when the user - // hits the homepage and admin screens for the first time.) + // hits the homepage and admin screens for the first time. if (StringComparer.OrdinalIgnoreCase.Equals(initialSettings.Name, ShellSettings.DefaultName)) { _viewsBackgroundCompilation.Start(); } diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs index ebccc5188..6108170c9 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs +++ b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs @@ -216,6 +216,8 @@ namespace Orchard.Setup.Services { } private void CreateTenantData(SetupContext context, IWorkContextScope environment) { + var recipeManager = environment.Resolve(); + // create superuser var membershipService = environment.Resolve(); var user =