This prevents a crash due to instance-config.php not existing, it will now check if the file exists and if not creates the file

This commit is contained in:
ReCaffeinated 2016-08-20 00:40:02 -05:00
parent 42988fe8ef
commit eccc26b757

View File

@ -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;