summaryrefslogtreecommitdiff
path: root/classes/File_oembed.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/File_oembed.php')
-rw-r--r--classes/File_oembed.php11
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);
}
-
-
-
}
}