Skip to content
Snippets Groups Projects
Verified Commit c8d54c65 authored by Damien's avatar Damien
Browse files

FEAT #13694 TIME 0:20 Json pretty

parent da662a8c
No related branches found
No related tags found
No related merge requests found
...@@ -26,8 +26,9 @@ if (is_file($file)) { ...@@ -26,8 +26,9 @@ if (is_file($file)) {
]; ];
} }
$jsonFile = json_encode($jsonFile); $fp = fopen('custom/custom.json', 'w');
file_put_contents('custom/custom.json', $jsonFile); fwrite($fp, json_encode($jsonFile, JSON_PRETTY_PRINT));
fclose($fp);
} }
unlink($file); unlink($file);
printf("Fichier custom/custom.xml migré en fichier json.\n"); printf("Fichier custom/custom.xml migré en fichier json.\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment