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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user