summaryrefslogtreecommitdiff
path: root/classes/File_thumbnail.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-07-15 17:10:36 -0400
committerCraig Andrews <candrews@integralblue.com>2009-07-15 17:10:36 -0400
commita35794e3c3bd147d3344eaad4b669f45595a3df5 (patch)
treed9b4fcdd9644af2b842ecebfd3ad981c421ce24d /classes/File_thumbnail.php
parentf75932601c08cdbdf68fddc7b5f9871b64d841ec (diff)
Try oEmbed discovery before using oohembed
Diffstat (limited to 'classes/File_thumbnail.php')
-rw-r--r--classes/File_thumbnail.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/File_thumbnail.php b/classes/File_thumbnail.php
index 44b92a2fa..0b09c6af8 100644
--- a/classes/File_thumbnail.php
+++ b/classes/File_thumbnail.php
@@ -51,9 +51,9 @@ class File_thumbnail extends Memcached_DataObject
function saveNew($data, $file_id) {
$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->url = $data->thumbnail_url;
+ $tn->width = intval($data->thumbnail_width);
+ $tn->height = intval($data->thumbnail_height);
$tn->insert();
}
}