Joseph Larmarange 1 month ago
parent
commit
03e12695db
  1. 7
      media_fonctions.php

7
media_fonctions.php

@ -159,8 +159,11 @@ function calculer_balise_MEDIA_IMAGE_RETAILLEE($image,$args,$sql_titre,$sql_type
// Supprimer proprement le query string
$url = parse_url($src);
if (!empty($url['query'])) {
$src = $url['scheme'].'://'.$url['host'].$url['path'];
if (!empty($url['query']) & !empty($url['scheme'])) {
$src = $url['scheme'].'://'.$url['host'].$url['path'];
}
if (!empty($url['query']) & empty($url['scheme'])) {
$src = $url['host'].$url['path'];
}
if(substr($src,0,strlen($url_site_spip))==$url_site_spip) {

Loading…
Cancel
Save