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

@ -15,6 +15,7 @@
- fixed #11400: Active Sessions Deletion
- fixed #11399: m4a missin
- fixed #11406: AdSku table mssing karma column
- fixed #11410: Too much errors in log after fix #11346
7.8.11
- fixed #11362: Unable to checkout with ITransact plugin

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 '';