convert oembed tools to use json arrays rather than json objects

This commit is contained in:
redmatrix
2016-09-24 05:15:06 -07:00
parent 4650458157
commit dca4db9d4d
3 changed files with 35 additions and 32 deletions

View File

@@ -15,7 +15,7 @@ function tryoembed($match) {
$o = oembed_fetch_url($url);
if ($o->type == 'error')
if ($o['type'] == 'error')
return $match[0];
$html = oembed_format_object($o);