Skip to content

Commit

Permalink
[#2375] fixes to template helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 31, 2012
1 parent 8406d44 commit a914908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/lib/helpers.py
Expand Up @@ -314,7 +314,7 @@ def _nav_link(text, controller, **kwargs):
def _link_class(kwargs):
''' creates classes for the link_to calls '''
highlight_actions = kwargs.pop('highlight_actions',
kwargs.get('action')).split()
kwargs.get('action', '')).split(' ')
if (c.controller == kwargs.get('controller')
and c.action in highlight_actions):
active = ' active'
Expand Down Expand Up @@ -358,7 +358,7 @@ def _subnav_link(text, action, **kwargs):
class_ = _link_class(kwargs)
return link_to(
text,
url_for(action=action, **kwargs),
url_for(**kwargs),
class_=class_
)

Expand Down

0 comments on commit a914908

Please sign in to comment.