1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Missing e107_config.php install fix. Prevents blank-page scenario.

This commit is contained in:
Cameron
2013-03-14 17:31:56 -07:00
parent 431b3f5357
commit 8b82720f39

View File

@@ -280,6 +280,12 @@ 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();