aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSem <sembrestels@riseup.net>2011-11-08 21:44:25 +0100
committerSem <sembrestels@riseup.net>2011-11-08 21:44:25 +0100
commit2d806df7a3ffe4ec57781ada8829b3b86bd91632 (patch)
tree9d3607b1c7fa733a3f920246caebd5151154e5ef /lib
parentc07236c9235ddf86830a780465e9c0bf57cc2b9f (diff)
downloadelgg-2d806df7a3ffe4ec57781ada8829b3b86bd91632.tar.gz
elgg-2d806df7a3ffe4ec57781ada8829b3b86bd91632.tar.bz2
Video icons.
Diffstat (limited to 'lib')
-rw-r--r--lib/videolist.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/videolist.php b/lib/videolist.php
index 03b6e2760..9e29f3061 100644
--- a/lib/videolist.php
+++ b/lib/videolist.php
@@ -88,7 +88,7 @@ function videolist_get_data_youtube($video_id){
return array(
'title' => sanitize_string($xml->title),
'description' => sanitize_string($xml->content),
- 'icon' => "http://img.youtube.com/vi/$video_id/default.jpg",
+ 'thumbnail' => "http://img.youtube.com/vi/$video_id/default.jpg",
'video_id' => $video_id,
'videotype' => 'youtube',
);
@@ -104,7 +104,7 @@ function videolist_get_data_vimeo($video_id){
return array(
'title' => sanitize_string($video->title),
'description' => sanitize_string($video->description),
- 'icon' => sanitize_string($video->thumbnail_medium),
+ 'thumbnail' => sanitize_string($video->thumbnail_medium),
'video_id' => $video_id,
'videotype' => 'vimeo',
);
@@ -122,7 +122,7 @@ function videolist_get_data_metacafe($video_id){ //FIXME
return array(
'title' => $channel->title,
'description' => $channel->description,
- 'icon' => $matches[1],
+ 'thumbnail' => $matches[1],
'video_id' => $video_id,
'videotype' => 'metacafe',
);