From ab47d48488f65cca08871bff69a1561e10740945 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 27 Mar 2014 13:15:14 +0100 Subject: [PATCH] Bug 7567: QA followup: remove useless $parameters hashref This hashref is useless, it is only used once. Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- tools/koha-news.pl | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/tools/koha-news.pl b/tools/koha-news.pl index 734db7ca53..aec9486c51 100755 --- a/tools/koha-news.pl +++ b/tools/koha-news.pl @@ -96,30 +96,32 @@ if ( $op eq 'add_form' ) { } } elsif ( $op eq 'add' ) { - my $parameters = { - title => $title, - new => $new, - lang => $lang, - expirationdate => $expirationdate, - timestamp => $timestamp, - number => $number, - branchcode => $branchcode, - }; - add_opac_new( $parameters ); + add_opac_new( + { + title => $title, + new => $new, + lang => $lang, + expirationdate => $expirationdate, + timestamp => $timestamp, + number => $number, + branchcode => $branchcode, + } + ); print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); } elsif ( $op eq 'edit' ) { - my $parameters = { - idnew => $id, - title => $title, - new => $new, - lang => $lang, - expirationdate => $expirationdate, - timestamp => $timestamp, - number => $number, - branchcode => $branchcode, - }; - upd_opac_new( $parameters ); + upd_opac_new( + { + idnew => $id, + title => $title, + new => $new, + lang => $lang, + expirationdate => $expirationdate, + timestamp => $timestamp, + number => $number, + branchcode => $branchcode, + } + ); print $cgi->redirect("/cgi-bin/koha/tools/koha-news.pl"); } elsif ( $op eq 'del' ) { -- 2.39.5