From eccc26b757afc951a44a1c72235e7327c5b8518e Mon Sep 17 00:00:00 2001 From: ReCaffeinated Date: Sat, 20 Aug 2016 00:40:02 -0500 Subject: [PATCH 1/2] 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 --- install.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install.php b/install.php index 95caf8ec..bc64c567 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; From 698cf8eaddc793f69933697d7e6d68d14f02ddea Mon Sep 17 00:00:00 2001 From: Paradox Date: Sat, 20 Aug 2016 10:55:18 -0500 Subject: [PATCH 2/2] Update install.php --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index bc64c567..791efd57 100644 --- a/install.php +++ b/install.php @@ -6,7 +6,7 @@ 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';