Skip to content

Commit

Permalink
[#306] Fix error where icon passed to qs in links
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jan 25, 2013
1 parent 75ef5fc commit 22ec8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -322,11 +322,11 @@ def _create_link_text(text, **kwargs):
kwargs '''
if kwargs.pop('inner_span', None):
text = literal('<span>') + text + literal('</span>')
icon = kwargs.pop('icon', None)
if icon:
text = literal('<i class="icon-large icon-%s"></i> ' % icon) + text
return text

icon = kwargs.pop('icon', None)
class_ = _link_class(kwargs)
return link_to(
_create_link_text(text, **kwargs),
Expand Down

0 comments on commit 22ec8c1

Please sign in to comment.