From: Jason Stephenson Date: Mon, 3 Jan 2022 19:08:28 +0000 (-0500) Subject: Simplify Language Picker X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e132bedb29926023cd535705372ddac6ddc105b8;p=working%2FEvergreen.git Simplify Language Picker Remove the BLOCK from the getformurl macro in the ecard/lang.tt2 template. Remove erroneous '=' and replace with '-' to have TT2 consume whitespace. I think the = was a PHP hangover or something. --- diff --git a/Open-ILS/src/templates/opac/ecard/lang.tt2 b/Open-ILS/src/templates/opac/ecard/lang.tt2 index ff33f2ae84..76673ff4f2 100644 --- a/Open-ILS/src/templates/opac/ecard/lang.tt2 +++ b/Open-ILS/src/templates/opac/ecard/lang.tt2 @@ -1,17 +1,15 @@ -[%= -MACRO getformurl(lang, name) BLOCK; - IF ctx.ecard.lang == lang; - name; - ELSE; - path = '/eg/opac/ecard/form'; - IF lang != "en"; - path = path _ "_" _ lang; - END; - url = '' _ name _ ''; - url; +[%- +MACRO getformurl(lang, name) +IF ctx.ecard.lang == lang; + name; +ELSE; + path = '/eg/opac/ecard/form'; + IF lang != "en"; + path = path _ "_" _ lang; END; + '' _ name _ ''; END; -=%] +-%]

( [% getformurl('en', 'English') %] |