From 07abe8e7b725f81a3be9dbc85309f64faab2829a Mon Sep 17 00:00:00 2001 From: Grisha Pomadchin Date: Tue, 16 Jul 2013 15:52:20 +0400 Subject: [PATCH] install fixes --- intaro.crm/install/index.php | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/intaro.crm/install/index.php b/intaro.crm/install/index.php index f2e77ce4..7e80526e 100755 --- a/intaro.crm/install/index.php +++ b/intaro.crm/install/index.php @@ -338,29 +338,12 @@ class intaro_crm extends CModule $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install/unstep1.php' ); } - - /** - * - * Recursive copy files from folder - * @param type $src - * @param type $dst - */ - - function rCopy($src, $dst) { - if (is_dir($src)) { - mkdir($dst); - $files = scandir($src); - foreach ($files as $file) - if ($file != "." && $file != "..") - $this->rCopy("$src/$file", "$dst/$file"); - } - else if (file_exists($src)) - copy($src, $dst); - } function CopyFiles() { - $this->rCopy( - $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install/export/', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/include/catalog_export/' + CopyDirFiles( + $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install/export/', + $_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/include/catalog_export/', + true, true ); } @@ -370,4 +353,4 @@ class intaro_crm extends CModule } } -?> +?> \ No newline at end of file