From 10cddb4471fd2488e95cc8df4847f8b1b514d18a Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 25 Oct 2021 18:50:17 +0000 Subject: [PATCH] Bug 29318: Tidy the code Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer --- opac/opac-overdrive-search.pl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/opac/opac-overdrive-search.pl b/opac/opac-overdrive-search.pl index 0fbb7b22d3..923df46e98 100755 --- a/opac/opac-overdrive-search.pl +++ b/opac/opac-overdrive-search.pl @@ -28,12 +28,14 @@ use C4::Output qw( output_html_with_http_headers ); my $cgi = CGI->new; # Getting the template and auth -my ($template, $loggedinuser, $cookie) -= get_template_and_user({template_name => "opac-overdrive-search.tt", - query => $cgi, - type => "opac", - authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), - }); +my ( $template, $loggedinuser, $cookie ) = get_template_and_user( + { + template_name => "opac-overdrive-search.tt", + query => $cgi, + type => "opac", + authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), + } +); $template->{'VARS'}->{'q'} = $cgi->param('q'); $template->{'VARS'}->{'limit'} = C4::Context->preference('OPACnumSearchResults') || 20; -- 2.11.0