diff options
author | Craig Andrews <candrews@integralblue.com> | 2009-07-15 17:10:36 -0400 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2009-07-15 17:10:36 -0400 |
commit | a35794e3c3bd147d3344eaad4b669f45595a3df5 (patch) | |
tree | d9b4fcdd9644af2b842ecebfd3ad981c421ce24d /classes/File.php | |
parent | f75932601c08cdbdf68fddc7b5f9871b64d841ec (diff) |
Try oEmbed discovery before using oohembed
Diffstat (limited to 'classes/File.php')
-rw-r--r-- | classes/File.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/File.php b/classes/File.php index 56d9f9827..68d385d1e 100644 --- a/classes/File.php +++ b/classes/File.php @@ -79,9 +79,8 @@ class File extends Memcached_DataObject if (isset($redir_data['type']) && ('text/html' === substr($redir_data['type'], 0, 9)) - && ($oembed_data = File_oembed::_getOembed($given_url)) - && isset($oembed_data['json'])) { - File_oembed::saveNew($oembed_data['json'], $file_id); + && ($oembed_data = File_oembed::_getOembed($given_url))) { + File_oembed::saveNew($oembed_data, $file_id); } return $x; } |