diff options
| author | polo <ordipolo@gmx.fr> | 2023-06-05 14:51:09 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2023-06-05 14:51:09 +0200 |
| commit | fdef77d4a8817b6e8940951f3301ad94bde0e6c6 (patch) | |
| tree | a9c4649d5171f7bb15fca6ec21bcd16d716841c5 /model/Album.php | |
| parent | a1c45fb18579f392070a65cf2c48e8b6bf5bf384 (diff) | |
| download | melaine-fdef77d4a8817b6e8940951f3301ad94bde0e6c6.tar.gz melaine-fdef77d4a8817b6e8940951f3301ad94bde0e6c6.tar.bz2 melaine-fdef77d4a8817b6e8940951f3301ad94bde0e6c6.zip | |
suppression de $_SESSION['file_code']
Diffstat (limited to 'model/Album.php')
| -rw-r--r-- | model/Album.php | 2 |
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); |
