[CLEANUP] Code: Remove function

This commit is contained in:
Marcus Müller
2018-04-16 14:56:02 +02:00
committed by GitHub
parent 03748ddd64
commit 791071a1c6

View File

@@ -13,7 +13,9 @@ if (file_exists('.htconfig.php') && filesize('.htconfig.php')) {
}
// Remove die from config file
copy_config_file();
$fileContent = file_get_contents('./htconfig.php');
$fileContent = str_replace('die', '//die', $fileContent);
file_put_contents('.htautoinstall.php', $fileContent);
require_once 'boot.php';
require_once 'mod/install.php';
@@ -109,13 +111,6 @@ echo " Complete!\n\n";
echo "\nInstallation is finished\n";
function copy_config_file()
{
$fileContent = file_get_contents('./htconfig.php');
$fileContent = str_replace('die', '//die', $fileContent);
file_put_contents('.htautoinstall.php', $fileContent);
}
/**
* @param App $app
* @return array