With the merged storage, do not generate log errors for non-image thumbnail requests. Fixes bug #11410.

This commit is contained in:
Colin Kuskie 2010-02-15 08:26:36 -08:00
parent 6d00e46510
commit 0decc8392c
2 changed files with 6 additions and 2 deletions

View file

@ -1244,8 +1244,11 @@ The file to retrieve the thumbnail for.
=cut
sub getThumbnailUrl {
my $self = shift;
my $filename = shift;
my $self = shift;
my $filename = shift;
if (! $self->isImage($filename)) {
return '';
}
if (! defined $filename) {
$self->session->errorHandler->error("Can't find a thumbnail url without a filename.");
return '';