[Koha-patches] [PATCH] Bug 7643 - Can't upload and import zipped file of patron images

Ivan Brown I.Brown at littleover.derby.sch.uk
Tue Sep 25 17:14:43 CEST 2012


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.


---------------------------------------------------------------------




More information about the Koha-patches mailing list