Skip to content
Snippets Groups Projects
Commit 2457615e authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #6180 use cp command with exec function

parent 0bd68002
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,9 @@ if (!$Class_Install->createPath($path)) { ...@@ -50,7 +50,9 @@ if (!$Class_Install->createPath($path)) {
exit; exit;
} }
if (!$Class_Install->copy_dir($_SESSION['config']['corepath'], $path . DIRECTORY_SEPARATOR)) { $cmd = "cp -R ".$_SESSION['config']['corepath']." ".$path . DIRECTORY_SEPARATOR;
if (!exec($cmd)) {
$return['status'] = 0; $return['status'] = 0;
$return['text'] = _CAN_NOT_COPY_TO . ':' . $path; $return['text'] = _CAN_NOT_COPY_TO . ':' . $path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment