diff options
-rw-r--r-- | graphics/video_icon_tiny.png | bin | 0 -> 841 bytes | |||
-rw-r--r-- | start.php | 7 |
2 files changed, 7 insertions, 0 deletions
diff --git a/graphics/video_icon_tiny.png b/graphics/video_icon_tiny.png Binary files differnew file mode 100644 index 000000000..1157694d5 --- /dev/null +++ b/graphics/video_icon_tiny.png @@ -248,6 +248,13 @@ function videolist_embed_get_items($hook, $type, $value, $params) { * @param string $size Not used yet. Not sure if possible. */ function videolist_get_entity_icon_url(ElggEntity $entity, $size = 'medium') { + + // tiny thumbnails are too small to be useful, so give a generic video icon + if ($size == 'tiny') { + global $CONFIG; + return "{$CONFIG->url}mod/videolist/graphics/video_icon_tiny.png"; + } + return $entity->thumbnail; } |