mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Issue #526 - temporary message for missing e107_config.php file. (requires testing)
This commit is contained in:
@@ -1556,9 +1556,12 @@ class e_install
|
|||||||
$system_dirs['SYSTEM_DIRECTORY'] = str_replace("[hash]/","", $system_dirs['SYSTEM_DIRECTORY']);
|
$system_dirs['SYSTEM_DIRECTORY'] = str_replace("[hash]/","", $system_dirs['SYSTEM_DIRECTORY']);
|
||||||
|
|
||||||
$e107_config = 'e107_config.php';
|
$e107_config = 'e107_config.php';
|
||||||
if (!file_exists($e107_config))
|
if (!file_exists($e107_config)) // fix to create empty config file before it is checked
|
||||||
{ // fix to create empty config file before it is checked
|
{
|
||||||
file_put_contents($e107_config, '');
|
if(file_put_contents($e107_config, '')===false)
|
||||||
|
{
|
||||||
|
echo "Error creating /e107_config.php file. Please create manually!";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$data['must_write'] = 'e107_config.php|{$MEDIA_DIRECTORY}|{$SYSTEM_DIRECTORY}'; // all-sub folders are created on-the-fly
|
$data['must_write'] = 'e107_config.php|{$MEDIA_DIRECTORY}|{$SYSTEM_DIRECTORY}'; // all-sub folders are created on-the-fly
|
||||||
|
Reference in New Issue
Block a user