From 76e16be497e92dcdec60fda4a186c1d9dbe555da Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Fri, 13 Sep 2013 19:51:31 +0200 Subject: [PATCH] Fix strict standards --- lib/classes/Bridge/Api/Dailymotion.php | 2 +- lib/classes/DailymotionWithoutOauth2.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/Bridge/Api/Dailymotion.php b/lib/classes/Bridge/Api/Dailymotion.php index 0a2bff6b8b..7c1099b23a 100644 --- a/lib/classes/Bridge/Api/Dailymotion.php +++ b/lib/classes/Bridge/Api/Dailymotion.php @@ -582,7 +582,7 @@ class Bridge_Api_Dailymotion extends Bridge_Api_Abstract implements Bridge_Api_I { switch ($record->get_type()) { case self::ELEMENT_TYPE_VIDEO : - $url_file = $this->_api->uploadFile($record->get_hd_file()->getRealPath(), $this->oauth_token); + $url_file = $this->_api->uploadFileWithToken($record->get_hd_file()->getRealPath(), $this->oauth_token); $options = array_merge(array('url' => $url_file), $options); $video = $this->_api->call('POST /me/videos', $options, $this->oauth_token); diff --git a/lib/classes/DailymotionWithoutOauth2.php b/lib/classes/DailymotionWithoutOauth2.php index e14d496741..102fc5d5b5 100644 --- a/lib/classes/DailymotionWithoutOauth2.php +++ b/lib/classes/DailymotionWithoutOauth2.php @@ -75,7 +75,7 @@ class DailymotionWithoutOauth2 extends Dailymotion * * @return String the resulting URL */ - public function uploadFile($filePath, $oauth_token) + public function uploadFileWithToken($filePath, $oauth_token) { $result = $this->call('file.upload', array(), $oauth_token); $timeout = $this->timeout;