Merge pull request #60 from ReCaffeinated/installfix

This prevents a crash due to instance-config.php not existing
This commit is contained in:
Michael Walker 2016-08-21 13:51:57 +01:00 committed by GitHub
commit 09983a9571

View File

@ -3,6 +3,11 @@
// Installation/upgrade file // Installation/upgrade file
define('VERSION', '4.9.93'); 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'; require 'inc/functions.php';
$step = isset($_GET['step']) ? round($_GET['step']) : 0; $step = isset($_GET['step']) ? round($_GET['step']) : 0;