mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixed a bug in the recipe builder.
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user