From ce07e06b55f4bb3847092b85b2df4280057c6e3a Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Fri, 10 Apr 2020 11:51:17 +0300 Subject: [PATCH] installation fix --- tests/RoboFile.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/RoboFile.php b/tests/RoboFile.php index 65d85f8..63e723c 100644 --- a/tests/RoboFile.php +++ b/tests/RoboFile.php @@ -112,19 +112,19 @@ class RoboFile extends \Robo\Tasks $this->printTaskError(" Could not connect ot database..."); } - $install_code = file_get_contents($this->root_dir . 'www/install/cli_install.php'); - $storage = <<root_dir . 'www/install/cli_install.php', - str_replace("define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');", $storage, $install_code) - ); + file_put_contents( + $this->root_dir . 'www/install/cli_install.php', + str_replace("define('DIR_MODIFICATION', DIR_SYSTEM . 'modification/');", $storage, $install_code) + ); + } $install = $this->taskExec('php')->arg($this->root_dir . 'www/install/cli_install.php')->arg('install'); foreach ($this->opencart_config as $option => $value) {