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

@@ -25,7 +25,7 @@ class Oembed extends \Zotlabs\Web\Controller {
echo "<html><head><base target=\"_blank\" /></head><body>";
$src = base64url_decode(argv(1));
$j = oembed_fetch_url($src);
echo $j->html;
echo $j['html'];
// logger('mod-oembed ' . $h, LOGGER_ALL);
echo "</body></html>";
}