diff --git a/src/Orchard/UI/Navigation/NavigationHelper.cs b/src/Orchard/UI/Navigation/NavigationHelper.cs index 2ab551c97..eb0803219 100644 --- a/src/Orchard/UI/Navigation/NavigationHelper.cs +++ b/src/Orchard/UI/Navigation/NavigationHelper.cs @@ -81,8 +81,8 @@ namespace Orchard.UI.Navigation { /// A stack with the selection path being the last node the currently selected one. public static Stack SetSelectedPath(IEnumerable menuItems, HttpRequestBase currentRequest, RouteValueDictionary currentRouteData) { // doing route data comparison first and if that fails, fallback to string-based URL lookup - var path = SetSelectedPath(menuItems, currentRequest, currentRouteData, false) - ?? SetSelectedPath(menuItems, currentRequest, currentRouteData, true); + var path = GetSelectedPath(menuItems, currentRequest, currentRouteData, false) + ?? GetSelectedPath(menuItems, currentRequest, currentRouteData, true); if(path != null) { foreach(var menuItem in path) { @@ -101,10 +101,10 @@ namespace Orchard.UI.Navigation { /// The current route data. /// Should compare raw string URLs instead of route data. /// A stack with the selection path being the last node the currently selected one. - private static Stack SetSelectedPath(IEnumerable menuItems, HttpRequestBase currentRequest, RouteValueDictionary currentRouteData, bool compareUrls) { + private static Stack GetSelectedPath(IEnumerable menuItems, HttpRequestBase currentRequest, RouteValueDictionary currentRouteData, bool compareUrls) { var selectedPaths = new List>(); foreach (MenuItem menuItem in menuItems) { - Stack selectedPath = SetSelectedPath(menuItem.Items, currentRequest, currentRouteData, compareUrls); + Stack selectedPath = GetSelectedPath(menuItem.Items, currentRequest, currentRouteData, compareUrls); if (selectedPath != null) { selectedPath.Push(menuItem); if (compareUrls) {