mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Use short array notation
This commit is contained in:
@@ -571,7 +571,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->sendFile($record->get_hd_file()->getRealPath(), $this->oauth_token);
|
||||
$options = array_merge(array('url' => $url_file), $options);
|
||||
$options = array_merge(['url' => $url_file], $options);
|
||||
$video = $this->_api->call('POST /me/videos', $options, $this->oauth_token);
|
||||
|
||||
return $video["id"];
|
||||
|
Reference in New Issue
Block a user