From 923cffc846326e0f157a1e2e559fd3f0129e9d53 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 --- 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 734db7c..aec9486 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' ) { -- 1.7.10.4