From ae6a0652d46f81ca46f6261abd23d49a19001540 Mon Sep 17 00:00:00 2001 From: "bugreport%peshkin.net" <> Date: Tue, 31 May 2005 22:42:44 +0000 Subject: Bug 294802: Make admin/table.html.tmpl replace multiple occurrances of %%column%% Patch by dmelentyev r=joel, a=justdave --- template/en/default/admin/table.html.tmpl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'template/en/default') 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 %] -- cgit v1.2.3-24-g4f1b