summaryrefslogtreecommitdiff
path: root/controller
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2022-03-03 01:10:18 +0100
committerpolo <ordipolo@gmx.fr>2022-03-03 01:10:18 +0100
commit608856e0853b7e1d9b9b43e69b2012227ccefb43 (patch)
tree6afc01887deb611d0f53db2532019276c3744ec1 /controller
parent9a28c38adb3585e55caeecd64d2171832a3684e9 (diff)
downloadmelaine-608856e0853b7e1d9b9b43e69b2012227ccefb43.zip
bug mineur
Diffstat (limited to 'controller')
-rw-r--r--controller/installation.php9
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 {