Skip to content

Commit

Permalink
[#471] Fix nav_link() when controller supplied as positional arg
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 27, 2013
1 parent f126a16 commit 704a8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -344,7 +344,7 @@ def nav_link(text, *args, **kwargs):
'''
if len(args) > 1:
raise Exception('Too many unnamed parameters supplied')
if len == 1:
if args:
kwargs['controller'] = controller
log.warning('h.nav_link() please supply controller as a named '
'parameter not a positional one')
Expand Down

0 comments on commit 704a8cf

Please sign in to comment.