With the merged storage, do not generate log errors for non-image thumbnail requests. Fixes bug #11410.
This commit is contained in:
parent
6d00e46510
commit
0decc8392c
2 changed files with 6 additions and 2 deletions
|
|
@ -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 '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue