Browse Source

Null plutôt si pas de page. Parait plus logique.

dev/providers-interdits
Matthieu Marcillaud 4 months ago
parent
commit
e8d9915253
  1. 2
      inc/oembed_recuperer_url.php
  2. 2
      oembed/input/posttraite_facebook_video.php

2
inc/oembed_recuperer_url.php

@ -75,7 +75,7 @@ function inc_oembed_recuperer_url($oembed_url, $url, $format){
// recuperer_page utilise par defaut l'adresse du site comme $referer
if (function_exists('recuperer_url')) {
$data = recuperer_url($oembed_url);
$data = isset($data['page']) ? $data['page'] : '';
$data = isset($data['page']) ? $data['page'] : null;
} else {
$data = recuperer_page($oembed_url);
}

2
oembed/input/posttraite_facebook_video.php

@ -20,7 +20,7 @@ function oembed_input_posttraite_facebook_video_dist($data, $url_orig) {
*/
if (function_exists('recuperer_url')) {
$data2 = recuperer_url('https://graph.facebook.com/'.$id_video.'/');
$data2 = isset($data2['page']) ? $data2['page'] : '';
$data2 = isset($data2['page']) ? $data2['page'] : null;
} else {
$data2 = recuperer_page('https://graph.facebook.com/'.$id_video.'/');
}

Loading…
Cancel
Save