Fixed a bug in the recipe builder.

This commit is contained in:
Sipke Schoorstra
2015-07-15 10:00:21 +01:00
parent 5e73dc0497
commit a1b9d01371

View File

@@ -5,7 +5,6 @@ namespace Orchard.Recipes.Services {
public class RecipeBuilder : Component, IRecipeBuilder { public class RecipeBuilder : Component, IRecipeBuilder {
public string Build(IEnumerable<IRecipeBuilderStep> steps) { public string Build(IEnumerable<IRecipeBuilderStep> steps) {
var exportDocument = CreateRecipeRoot();
var context = new BuildContext { var context = new BuildContext {
RecipeDocument = CreateRecipeRoot() RecipeDocument = CreateRecipeRoot()
}; };
@@ -14,7 +13,7 @@ namespace Orchard.Recipes.Services {
step.Build(context); step.Build(context);
} }
return exportDocument.ToString(); return context.RecipeDocument.ToString();
} }
private XDocument CreateRecipeRoot() { private XDocument CreateRecipeRoot() {