diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-05-15 15:04:58 -0400 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-05-15 15:04:58 -0400 |
commit | fecb8c706dadb790c3a8c219275b4ba88e00b8ea (patch) | |
tree | 674650bcdc21627aedb97250426a554c85eca096 /classes/File_oembed.php | |
parent | 2e394ef47ce2f069e331c24586cda13bc34413aa (diff) |
Attachments and their list now provide "ajax" view. Also added a few sidebars relating tags and attachments.
Diffstat (limited to 'classes/File_oembed.php')
-rw-r--r-- | classes/File_oembed.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/classes/File_oembed.php b/classes/File_oembed.php index 2846f49db..f1b2cb13c 100644 --- a/classes/File_oembed.php +++ b/classes/File_oembed.php @@ -78,18 +78,9 @@ class File_oembed extends Memcached_DataObject if (!empty($data['author_url'])) $file_oembed->author_url = $data['author_url']; if (!empty($data['url'])) $file_oembed->url = $data['url']; $file_oembed->insert(); - if (!empty($data['thumbnail_url'])) { - $tn = new File_thumbnail; - $tn->file_id = $file_id; - $tn->url = $data['thumbnail_url']; - $tn->width = intval($data['thumbnail_width']); - $tn->height = intval($data['thumbnail_height']); - $tn->insert(); + File_thumbnail::saveNew($data, $file_id); } - - - } } |