diff options
-rw-r--r-- | template/en/default/admin/table.html.tmpl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/template/en/default/admin/table.html.tmpl b/template/en/default/admin/table.html.tmpl index 4254f80e1..ff554429a 100644 --- a/template/en/default/admin/table.html.tmpl +++ b/template/en/default/admin/table.html.tmpl @@ -76,9 +76,13 @@ [% IF c.contentlink %] [% link_uri = c.contentlink %] - [% FOREACH m = link_uri.match('%%(.+?)%%'); %] - [% IF row.$m %] - [% replacement_value = FILTER url_quote; row.$m; END %] + [% WHILE link_uri.search('%%(.+?)%%')%] + [% FOREACH m = link_uri.match('%%(.+?)%%') %] + [% IF row.$m %] + [% replacement_value = FILTER url_quote; row.$m; END %] + [% ELSE %] + [% replacement_value = "" %] + [% END %] [% link_uri = link_uri.replace("%%$m%%", replacement_value) %] [% END %] [% END %] |