X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=extlib%2FServices%2FoEmbed.php;h=7d507b6f622cea9ada872dbe1cde3c4e020586ba;hb=1139f7cad59aa562eb1a7f7691c00392206e73fd;hp=5d38ed883d50fb6e5e5333691032f9d53cea55ca;hpb=09bab904091316fe669619ec90a26a86fc1927d5;p=quix0rs-gnu-social.git diff --git a/extlib/Services/oEmbed.php b/extlib/Services/oEmbed.php index 5d38ed883d..7d507b6f62 100644 --- a/extlib/Services/oEmbed.php +++ b/extlib/Services/oEmbed.php @@ -162,7 +162,7 @@ class Services_oEmbed } if ($this->options[self::OPTION_API] === null) { - $this->options[self::OPTION_API] = $this->discover(); + $this->options[self::OPTION_API] = $this->discover($url); } } @@ -319,7 +319,7 @@ class Services_oEmbed } } - return (isset($ret['json']) ? $ret['json'] : array_pop($ret)); + return (isset($ret['application/json']) ? $ret['application/json'] : array_pop($ret)); } /**