-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 2617: Add strict (and warnings), partial fix.
These are some of the simpler scripts to add strict to. Corrected perldoc for Bookfund. Signed-off-by: Galen Charlton <[email protected]>
- Loading branch information
Joe Atzberger
authored and
Galen Charlton
committed
Mar 11, 2009
1 parent
1b12339
commit ccee815
Showing
6 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#!/usr/bin/perl | ||
|
||
|
||
#written by [email protected] | ||
#9/10/2000 | ||
#script to display and update currency rates | ||
|
||
|
||
# Copyright 2000-2002 Katipo Communications | ||
# | ||
# This file is part of Koha. | ||
|
@@ -23,18 +21,21 @@ | |
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, | ||
# Suite 330, Boston, MA 02111-1307 USA | ||
|
||
use strict; | ||
use warnings; | ||
use CGI; | ||
use C4::Acquisition; | ||
use C4::Biblio; | ||
use C4::Bookfund; | ||
use C4::Bookfund qw(ModCurrencies); | ||
|
||
my $input=new CGI; | ||
# FIXME: CHECK AUTH | ||
# FIXME: This should be part of another script, not a throwaway standalone. | ||
# FIXME: params should have better checks before passed to ModCurrencies | ||
# FIXME: need error handling if ModCurrencies FAILS. | ||
|
||
my @params=$input->param; | ||
foreach my $param (@params){ | ||
if ($param ne 'type' && $param !~ /submit/){ | ||
my $data=$input->param($param); | ||
ModCurrencies($param,$data); | ||
} | ||
my $input = new CGI; | ||
|
||
foreach my $param ($input->param) { | ||
if ($param ne 'type' && $param !~ /submit/) { | ||
ModCurrencies($param, $input->param($param)); | ||
} | ||
} | ||
print $input->redirect('/cgi-bin/koha/acqui/acqui-home.pl'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/perl | ||
|
||
use strict; | ||
use warnings; | ||
use CGI; | ||
# use Data::Dumper; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters