diff options
| author | Michael Walker <mike@barrucadu.co.uk> | 2016-08-21 13:51:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-21 13:51:57 +0100 |
| commit | 09983a957191ef70e40cf622caaae78dc03702ca (patch) | |
| tree | 04ed0c4afce9316236214a38587eafdf7b4335ae /install.php | |
| parent | 0678b74b7afed7eade5415d2b2cd4cd619c4bc89 (diff) | |
| parent | 698cf8eaddc793f69933697d7e6d68d14f02ddea (diff) | |
Merge pull request #60 from ReCaffeinated/installfix
This prevents a crash due to instance-config.php not existing
Diffstat (limited to 'install.php')
| -rw-r--r-- | install.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/install.php b/install.php index 95caf8ec..791efd57 100644 --- a/install.php +++ b/install.php @@ -3,6 +3,11 @@ // Installation/upgrade file define('VERSION', '4.9.93'); +if (fopen('inc/instance-config.php' , 'a') === false) { + print('install.php does not have permission to write to /inc/, without permission the installer cannot continue'); + exit(); +} + require 'inc/functions.php'; $step = isset($_GET['step']) ? round($_GET['step']) : 0; |
