From 791071a1c640d04d79c2770d3f7f730a3048df96 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marcus=20M=C3=BCller?= Date: Mon, 16 Apr 2018 14:56:02 +0200 Subject: [PATCH] [CLEANUP] Code: Remove function --- auto_install.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/auto_install.php b/auto_install.php index ef30d1912a..bc418d6889 100644 --- a/auto_install.php +++ b/auto_install.php @@ -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 -- 2.39.5