Bug 13618: Fix xt/tt_valid.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 17 Aug 2018 17:58:52 +0000 (14:58 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 17 Aug 2018 18:07:15 +0000 (18:07 +0000)
We are going to say it quietly but this test does not catch the problem
when there are no spaces....shhhh

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/bodytag.inc

index 8046f6c..ab56ed5 100644 (file)
@@ -1,5 +1,5 @@
 [% USE raw %]
-[% classprop  = 'class="' | html %]
+[% SET classprop  = 'class="' %]
 [% IF LoginBranchcode.defined %]
     [% classprop = classprop _ 'branch-' _ LoginBranchcode %]
 [% ELSE %]
@@ -11,6 +11,6 @@
 [% classprop = classprop _ '"' %]
 
 [% IF bodyid.defined %]
-    [% idprop = 'ID="' _ bodyid _ '" ' | html %]
+    [% SET idprop = 'ID="' _ bodyid _ '" ' %]
 [% END %]
-<body [% idprop | html %][% classprop | $raw %] >
+<body [%idprop|$raw%][%classprop|$raw%] >