Correction du chemin du fichier Json

scrutari
Vincent Calame 1 year ago committed by root
parent 9e786e18cb
commit 38a1a50089
  1. 2
      libreavous_fonctions.php

@ -97,7 +97,7 @@ function libreavous_import_run($id_article) {
$ogg_size = "";
$mp3_size = "";
try {
$jsonContents = file_get_contents("https://forge.april.org/libreavous/lav-outils/src/branch/master/podcasts/config/lav-".$code_emission.".json");
$jsonContents = file_get_contents("https://forge.april.org/libreavous/lav-outils/raw/branch/master/podcasts/config/lav-".$code_emission.".json");
$json = json_decode($jsonContents, true);
if (!$json) {
$erreurs[] = "JSON incorrect";

Loading…
Cancel
Save