]> git.sesse.net Git - pr0n/blobdiff - perl/update-image-cache.pl
Small hack for update-image-cache.pl.
[pr0n] / perl / update-image-cache.pl
index 213a7a0cb1ee6b14386161357762e699ad6b6318..f26ba99721a25224cc2664ddd8dca4ecfd78aa39 100755 (executable)
@@ -51,6 +51,8 @@ sub warn {
 sub error {
        print STDERR $_[1], "\n";
 }
+sub logger {
+}
 package main;
 use Sesse::pr0n::Common;
 
@@ -118,7 +120,7 @@ while (my $ref = $q->fetchrow_hashref) {
        next unless $any_old;
        unlink (@files);
        if (scalar @noboxres > 0) {
-               Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 1, sort_res(@noboxres));
+               Sesse::pr0n::Common::ensure_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, sort_res(@noboxres));
        }
        if (scalar @boxres > 0) {
                Sesse::pr0n::Common::ensure_infobox_cached($r, $ref->{'filename'}, $id, $ref->{'width'}, $ref->{'height'}, 1, sort_res(@boxres));