We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 97812549 authored by mattl's avatar mattl

Unnecessarily spammy logs for getThumbnail()

When trying to create thumbnails for remote media that don't have the
filename field set, we got a lot of output in the debug log.
parent a8e613e5
......@@ -110,6 +110,9 @@ class ImageFile
$imgPath = null;
$media = common_get_mime_media($file->mimetype);
if (Event::handle('CreateFileImageThumbnailSource', array($file, &$imgPath, $media))) {
if (empty($file->filename)) {
throw new UnsupportedMediaException(_('File without filename could not get a thumbnail source.'));
switch ($media) {
case 'image':
$imgPath = $file->getPath();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment