Bugzilla – Attachment 74835 Details for
Bug 20538
Remove the need of writing [% KOHA_VERSION %] everywhere
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20538: Prevent warnings in xt/author/valid-templates.t
Bug-20538-Prevent-warnings-in-xtauthorvalid-templa.patch (text/plain), 1.12 KB, created by
Julian Maurice
on 2018-04-25 07:22:28 UTC
(
hide
)
Description:
Bug 20538: Prevent warnings in xt/author/valid-templates.t
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2018-04-25 07:22:28 UTC
Size:
1.12 KB
patch
obsolete
>From 52cda2fc1da5dd2f493c4b1fab71b7c69489bd72 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 25 Apr 2018 09:21:30 +0200 >Subject: [PATCH] Bug 20538: Prevent warnings in xt/author/valid-templates.t > >--- > xt/author/valid-templates.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/xt/author/valid-templates.t b/xt/author/valid-templates.t >index b7baf55f73..9d195373e0 100644 >--- a/xt/author/valid-templates.t >+++ b/xt/author/valid-templates.t >@@ -117,6 +117,10 @@ sub run_template_test { > sub create_template_test { > my $includes = shift; > my @exclusions = @_; >+ >+ my $interface = $includes =~ s|^.*/([^/]*-tmpl).*$|$1|r; >+ my $theme = ($interface =~ /opac/) ? 'bootstrap' : 'prog'; >+ > return sub { > my $tt = Template->new( > { >@@ -131,7 +135,7 @@ sub create_template_test { > return; > } > } >- my $vars; >+ my $vars = { interface => $interface, theme => $theme }; > my $output; > if ( ! -d $_ ) { # skip dirs > if ( !ok( $tt->process( $_, $vars, \$output ), $_ ) ) { >-- >2.14.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20538
:
73791
|
73836
|
74048
|
74049
|
74053
|
74054
|
74056
|
74057
|
74058
|
74059
|
74060
|
74061
|
74062
|
74063
|
74171
| 74835