This commit is contained in:
Romain Neutron
2013-01-21 23:21:33 +01:00
parent 4f96fbda7b
commit 23a8bbbebf
5 changed files with 12 additions and 23 deletions

View File

@@ -11,7 +11,7 @@
require_once __DIR__ . "/../../../classes/DailymotionWithoutOauth2.php";
use \Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Request;
/**
*
@@ -194,7 +194,7 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
{
return array(self::CONTAINER_TYPE_PLAYLIST => _('Playlists'));
}
public function get_oauth_token()
{
return $this->oauth_token;
@@ -203,10 +203,10 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I
public function set_oauth_token($oauth_token)
{
$this->oauth_token = $oauth_token;
return $this;
}
/**
*
* @param string $type

View File

@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
use \Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Request;
/**
*
@@ -726,7 +726,7 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
if (false === $cxml = simplexml_load_file($url_cat)) {
throw new Bridge_Exception_ApiConnectorRequestFailed('Failed to retrive youtube categories');
}
$cxml->registerXPathNamespace('atom', 'http://www.w3.org/2005/Atom');
$categories = $cxml->xpath('//atom:category');