From 9b0951e845461ac39e69c0995409cf3ef81b93fb Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel Date: Mon, 14 Apr 2014 19:14:29 -0300 Subject: [PATCH] Bug 12072 - Follow up to fix koha-qa errors Removed one tab, and two unnecessary 'my' --- C4/Dates.pm | 2 +- tools/exceptionHolidays.pl | 2 +- tools/newHolidays.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/C4/Dates.pm b/C4/Dates.pm index d536079..f4b7ef3 100644 --- a/C4/Dates.pm +++ b/C4/Dates.pm @@ -47,7 +47,7 @@ sub _prefformat { sub reset_prefformat { # subroutine to clear the prefformat, called when we change it if (defined $prefformat){ - $prefformat = C4::Context->preference('dateformat') || 'us'; + $prefformat = C4::Context->preference('dateformat') || 'us'; } } diff --git a/tools/exceptionHolidays.pl b/tools/exceptionHolidays.pl index eb1affb..a60d9de 100755 --- a/tools/exceptionHolidays.pl +++ b/tools/exceptionHolidays.pl @@ -41,7 +41,7 @@ if ($description) { } -my $datecancelrange = C4::Dates->new($datecancelrange)->output('iso'); +$datecancelrange = C4::Dates->new($datecancelrange)->output('iso'); my @dateend = split(/[\/-]/, $datecancelrange); $year1 = $dateend[0]; $month1 = $dateend[1]; diff --git a/tools/newHolidays.pl b/tools/newHolidays.pl index 996b832..76a108e 100755 --- a/tools/newHolidays.pl +++ b/tools/newHolidays.pl @@ -34,7 +34,7 @@ my $calendardate = sprintf("%04d-%02d-%02d", $year, $month, $day); my $isodate = C4::Dates->new($calendardate, 'iso'); $calendardate = $isodate->output('syspref'); -my $dateofrange = C4::Dates->new($dateofrange)->output('iso'); +$dateofrange = C4::Dates->new($dateofrange)->output('iso'); my @dateend = split(/[\/-]/, $dateofrange); $year1 = $dateend[0]; $month1 = $dateend[1]; -- 1.7.9.5