Refactoring

--HG--
branch : 1.x
extra : rebase_source : 0a3659f94fbdb3fab2185bdf26c7f9838bd4995b
This commit is contained in:
Sebastien Ros
2013-01-29 12:01:44 -08:00
parent 56b656747d
commit e5c9da31c8
28 changed files with 346 additions and 282 deletions

View File

@@ -79,7 +79,7 @@ namespace Orchard.Core.Navigation.Drivers {
var selectedPath = NavigationHelper.SetSelectedPath(menuItems, routeData);
dynamic menuShape = shapeHelper.Menu();
if (part.Breadcrumb && selectedPath != null) {
menuItems = selectedPath;
foreach (var menuItem in menuItems) {
@@ -160,9 +160,9 @@ namespace Orchard.Core.Navigation.Drivers {
}
}
menuShape.MenuName(menuName);
menuShape.ContentItem(menu);
NavigationHelper.PopulateMenu(shapeHelper, menuShape, menuShape, menuItems);
return shapeHelper.Parts_MenuWidget(Menu: menuShape);