]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed bugs in oEmbed library's discovery routines
authorCraig Andrews <candrews@integralblue.com>
Wed, 15 Jul 2009 21:09:11 +0000 (17:09 -0400)
committerCraig Andrews <candrews@integralblue.com>
Wed, 15 Jul 2009 21:09:11 +0000 (17:09 -0400)
extlib/Services/oEmbed.php

index 5d38ed883d50fb6e5e5333691032f9d53cea55ca..7d507b6f622cea9ada872dbe1cde3c4e020586ba 100644 (file)
@@ -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));
     }
 
     /**