Yet more issues with the -1 width/height transformation -- this time, fix
authorSteinar H. Gunderson <sesse@debian.org>
Sat, 25 Aug 2007 00:34:49 +0000 (02:34 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Sat, 25 Aug 2007 00:34:49 +0000 (02:34 +0200)
so WebDAV uploads get cached at upload time again.

perl/Sesse/pr0n/WebDAV.pm

index 9d579496c40fe922c3175a6daa1cf8f5b7f5be42..28ad780e0db2551aa6f80f1ebf2c5d4ebec8c11d 100644 (file)
@@ -491,7 +491,7 @@ EOF
                                # Make cache while we're at it.
                                # Don't do it for the resource forks Mac OS X loves to upload :-(
                                if ($filename !~ /^\._/) {
-                                       Sesse::pr0n::Common::ensure_cached($r, $filename, $newid, -1, -1, 1, 80, 64, 320, 256, -1, -1);
+                                       Sesse::pr0n::Common::ensure_cached($r, $filename, $newid, undef, undef, 1, 80, 64, 320, 256, -1, -1);
                                }
                                
                                # OK, we got this far, commit
@@ -622,7 +622,7 @@ EOF
                                        or die "/usr/bin/exifautotran: $!";
 
                                # Make cache while we're at it.
-                               Sesse::pr0n::Common::ensure_cached($r, $filename, $newid, -1, -1, 1, 80, 64, 320, 256, -1, -1);
+                               Sesse::pr0n::Common::ensure_cached($r, $filename, $newid, undef, undef, 1, 80, 64, 320, 256, -1, -1);
                                
                                # OK, we got this far, commit
                                $dbh->commit;