From 2124f58231896145b59b6adae5b2f5cae529c326 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 16 Mar 2007 15:02:06 +0000 Subject: [PATCH] fix: Bug in thumbnailer.pl --- docs/changelog/7.x.x.txt | 1 + sbin/thumbnailer.pl | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 1d8234913..c578fd619 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -3,6 +3,7 @@ - fix: SQLReport SubQuery Pagination (William McKee / Knowmad Technologies) - fix: SQL Report: Paginate After (Still) (William McKee / Knowmad Technologies) + - fix: Bug in thumbnailer.pl 7.3.12 diff --git a/sbin/thumbnailer.pl b/sbin/thumbnailer.pl index d2539a84e..9c2fea603 100644 --- a/sbin/thumbnailer.pl +++ b/sbin/thumbnailer.pl @@ -24,20 +24,20 @@ use WebGUI::Utility; my $thumbnailSize; my $onlyMissingThumbnails; my $help; - -my $path = shift @ARGV; +my $path; my $ok = GetOptions( 'size=i'=>\$thumbnailSize, 'missing'=>\$onlyMissingThumbnails, 'help'=>\$help, + 'path=s'=>\$path ); if ($help || ($path && $ok) ) { print < [--size=thumbnailSize] [--missing] +Usage: perl $0 --path=/path/to/files [--size=thumbnailSize] [--missing] -uploadsPath is the complete path to your uploads directory +--path is the complete path to your uploads directory --size=thumbSize allows you to override the default thumbnail size of 50.