From 22ec8c182e58b3b27c5f1e19b55209337aac1754 Mon Sep 17 00:00:00 2001 From: tobes Date: Fri, 25 Jan 2013 02:41:38 +0000 Subject: [PATCH] [#306] Fix error where icon passed to qs in links --- ckan/lib/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index 7fc9bf12214..c0f63d0c143 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -322,11 +322,11 @@ def _create_link_text(text, **kwargs): kwargs ''' if kwargs.pop('inner_span', None): text = literal('') + text + literal('') - icon = kwargs.pop('icon', None) if icon: text = literal(' ' % icon) + text return text + icon = kwargs.pop('icon', None) class_ = _link_class(kwargs) return link_to( _create_link_text(text, **kwargs),