Fixed problem with re-declaration of $filesuffix
---
tools/picture-upload.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/picture-upload.pl b/tools/picture-upload.pl
index bfb233e..4507fa1 100755
--- a/tools/picture-upload.pl
+++ b/tools/picture-upload.pl
@@ -80,7 +80,7 @@ if ( ($op eq 'Upload') && $uploadfile ) { # Case is
important in these ope
$debug and warn "dirname = $dirname";
my $filesuffix;
if ( $uploadfilename =~ m/(\..+)$/i ) {
- my $filesuffix = $1;
+ $filesuffix = $1;
}
( $tfh, $tempfile ) = File::Temp::tempfile( SUFFIX => $filesuffix, UNLINK
=> 1 );
$debug and warn "tempfile = $tempfile";
--
1.7.11.msysgit.1
[None] made the following annotations
---------------------------------------------------------------------
The views expressed in this email are personal and may not necessarily reflect
those of Derby City Council, unless explicitly stated otherwise
This email, and any files transmitted with it, are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error, please notify me immediately.
If you are not the intended recipient of this email, you should not copy it for
any purpose, or disclose its contents to any other person.
Senders and recipients of e-mail should be aware that under the Data Protection
Act 1998 and Freedom of Information Act 2000, the contents may have to be
disclosed.
---------------------------------------------------------------------
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/