summaryrefslogtreecommitdiff
path: root/model/Album.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Album.php')
-rw-r--r--model/Album.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/Album.php b/model/Album.php
index 801afef..1954800 100644
--- a/model/Album.php
+++ b/model/Album.php
@@ -160,7 +160,7 @@ class Album extends Article
160 $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]); 160 $albumJSON = json_encode([$titre, $annee, $pochette, $pochetteMini]);
161 161
162 // écriture 162 // écriture
163 $nom_fichier = 'data/discographie/json/' . $this->albumCode . '.json'; 163 $nom_fichier = 'data/discographie/json/' . $this->fileCode . '.json';
164 $fichier = fopen($nom_fichier, 'w+'); // w pour créer ou écraser 164 $fichier = fopen($nom_fichier, 'w+'); // w pour créer ou écraser
165 fputs($fichier, $albumJSON); 165 fputs($fichier, $albumJSON);
166 fclose($fichier); 166 fclose($fichier);