From 8b82720f398377d1d0ff25643bec35e1929f6ac9 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 14 Mar 2013 17:31:56 -0700 Subject: [PATCH] Missing e107_config.php install fix. Prevents blank-page scenario. --- e107_handlers/e107_class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 4405d1ce8..8c9d813dc 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -279,7 +279,13 @@ class e107 */ public function initInstall($e107_paths, $e107_root_path, $e107_config_override = array()) { - + + $e107_config = 'e107_config.php'; + if (!file_exists($e107_config)) // prevent blank-page with missing file during install. + { + file_put_contents($e107_config, ''); + } + // Do some security checks/cleanup, prepare the environment $this->prepare_request();