diff options
author | polo <ordipolo@gmx.fr> | 2022-03-03 01:10:18 +0100 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2022-03-03 01:10:18 +0100 |
commit | 608856e0853b7e1d9b9b43e69b2012227ccefb43 (patch) | |
tree | 6afc01887deb611d0f53db2532019276c3744ec1 /controller | |
parent | 9a28c38adb3585e55caeecd64d2171832a3684e9 (diff) | |
download | melaine-608856e0853b7e1d9b9b43e69b2012227ccefb43.zip |
bug mineur
Diffstat (limited to 'controller')
-rw-r--r-- | controller/installation.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/controller/installation.php b/controller/installation.php index 7e3863b..e8b1af8 100644 --- a/controller/installation.php +++ b/controller/installation.php | |||
@@ -68,9 +68,12 @@ function installation() | |||
68 | require('view/backup.php'); | 68 | require('view/backup.php'); |
69 | exit(); | 69 | exit(); |
70 | } | 70 | } |
71 | touch('data/index.html'); | 71 | if(!file_exists('data/index.html')) |
72 | chmod('data/index.html', $droitsFichiers); | 72 | { |
73 | 73 | touch('data/index.html'); | |
74 | chmod('data/index.html', $droitsFichiers); | ||
75 | } | ||
76 | |||
74 | $listePages = array('melaine', 'discographie', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives'); | 77 | $listePages = array('melaine', 'discographie', 'concerts', 'presse', 'ateliers', 'liens', 'peinture', 'archives'); |
75 | foreach ($listePages as $page) | 78 | foreach ($listePages as $page) |
76 | { | 79 | { |