1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-01 10:23:53 +02:00

Fixes #526 - Installer returns blank page when e107_config.php cannot be created.

This commit is contained in:
Cameron
2014-05-28 03:05:27 -07:00
parent 9686e6f553
commit 6ce088a339
2 changed files with 57 additions and 20 deletions

View File

@@ -284,13 +284,16 @@ 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, '');
if(file_put_contents($e107_config, '')===false)
{
return false;
}
}
// Do some security checks/cleanup, prepare the environment
$this->prepare_request();