Fixing an overloaded version of ContentShape

--HG--
branch : dev
extra : rebase_source : 99f13a351b9fd5ca3fc4fa294adc7994ae3a9ce7
This commit is contained in:
Louis DeJardin
2010-10-18 12:49:03 -07:00
parent 48a115fb81
commit 63a2356ecb

View File

@@ -42,11 +42,11 @@ namespace Orchard.ContentManagement.Drivers {
}
public ContentShapeResult ContentShape(string shapeType, Func<dynamic, dynamic> factory) {
return ContentShapeImplementation(shapeType, null, ctx=>factory(CreateShape(ctx, shapeType)));
return ContentShapeImplementation(shapeType, null, ctx => factory(CreateShape(ctx, shapeType)));
}
public ContentShapeResult ContentShape(string shapeType, string defaultLocation, Func<dynamic, dynamic> factory) {
return ContentShapeImplementation(shapeType, defaultLocation, factory);
return ContentShapeImplementation(shapeType, defaultLocation, ctx => factory(CreateShape(ctx, shapeType)));
}
private ContentShapeResult ContentShapeImplementation(string shapeType, string defaultLocation, Func<BuildShapeContext, object> shapeBuilder) {