Commit ae6a0652 authored by bugreport%peshkin.net's avatar bugreport%peshkin.net

Bug 294802: Make admin/table.html.tmpl replace multiple occurrances of %%column%%

Patch by dmelentyev r=joel, a=justdave
parent dcc141ae
......@@ -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 %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment