Skip to content

Commit

Permalink
Merge pull request #42 from Opencast-Moodle/fix/nothumbnail
Browse files Browse the repository at this point in the history
Add fallback in case there is no thumbnail
  • Loading branch information
NinaHerrmann authored Feb 6, 2024
2 parents b147fe9 + d05403c commit 8d3d37b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/local/paella_transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ private static function get_preview_image($publication) {
}
}

return $presentationpreview ?? $presenterpreview ?? $otherpreview;
return $presentationpreview ?? $presenterpreview ?? $otherpreview
?? (new \moodle_url('/mod/opencast/pix/nothumbnail.png'))->out(false);
}

/**
Expand Down
Binary file added pix/nothumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8d3d37b

Please sign in to comment.