install fixes
This commit is contained in:
parent
432ab5a8c1
commit
07abe8e7b7
@ -339,28 +339,11 @@ class intaro_crm extends CModule
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* 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() {
|
function CopyFiles() {
|
||||||
$this->rCopy(
|
CopyDirFiles(
|
||||||
$_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install/export/', $_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/include/catalog_export/'
|
$_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/' . $this->MODULE_ID . '/install/export/',
|
||||||
|
$_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/include/catalog_export/',
|
||||||
|
true, true
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user