Correction du chemin du fichier Json

This commit is contained in:
Vincent Calame 2021-10-18 19:53:20 +02:00 committed by root
parent 9e786e18cb
commit 38a1a50089

View File

@ -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";