Révision 1c42f191
Ajouté par Assos Assos il y a plus de 6 ans
drupal7/sites/all/modules/media_youtube/themes/media_youtube.theme.inc | ||
---|---|---|
35 | 35 |
// Checked existing function. |
36 | 36 |
if(function_exists('file_uri_to_object')) { |
37 | 37 |
// Make the file object available. |
38 |
$file_object = file_uri_to_object($variables['uri']); |
|
38 |
$file_object = file_uri_to_object($variables['uri'], TRUE);
|
|
39 | 39 |
} |
40 | 40 |
else { |
41 | 41 |
$file_object = media_youtube_file_uri_to_object($variables['uri']); |
... | ... | |
60 | 60 |
} |
61 | 61 |
// These queries default to 0. If the option is true, set value to 1. |
62 | 62 |
foreach (array('autoplay', 'enablejsapi', 'loop', 'modestbranding') as $option) { |
63 |
if ($variables['options'][$option]) { |
|
63 |
if (isset($variables['options'][$option]) && $variables['options'][$option]) {
|
|
64 | 64 |
$query[$option] = 1; |
65 | 65 |
} |
66 | 66 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules