Skip to content

Commit

Permalink
[#471] Fix subnav_named_route() to use nav_link()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 27, 2013
1 parent 6bf2348 commit f126a16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/lib/helpers.py
Expand Up @@ -380,12 +380,12 @@ def subnav_link(text, action, **kwargs):


@maintain.deprecated('h.subnav_named_route is deprecated please '
'use h.build_nav\nNOTE: the order of the first two '
'parameters is reversed in the new function')
'use h.nav_link\nNOTE: you will need to pass the '
'route_name as a named parameter')
def subnav_named_route(text, routename, **kwargs):
'''Generate a subnav element based on a named route
Deprecated in ckan 2.0 '''
return build_nav(routename, text, **kwargs)
return nav_link(text, named_route=named_route, **kwargs)


def build_nav_main(*args):
Expand Down

0 comments on commit f126a16

Please sign in to comment.