Merged in feature/HOR-3474 (pull request #6004)

HOR-3474

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
jonathan Quispe
2017-08-23 19:11:37 +00:00
committed by Julio Cesar Laura Avendaño
14 changed files with 71 additions and 81 deletions

View File

@@ -9,7 +9,6 @@
use ProcessMaker\Core\System;
require_once "HTTP/WebDAV/Server.php";
require_once "System.php";
/**
* ProcessMaker Filesystem access using WebDAV
@@ -745,7 +744,7 @@ class ProcessMakerWebDav extends HTTP_WebDAV_Server
if (is_dir($path)) {
$query = "DELETE FROM properties WHERE path LIKE '" . $this->_slashify($options["path"]) . "%'";
mysql_query($query);
System::rm("-rf $path");
PearSystem::rm("-rf $path");
} else {
unlink($path);
}
@@ -848,7 +847,7 @@ class ProcessMakerWebDav extends HTTP_WebDAV_Server
mysql_query($query);
} else {
if (is_dir($source)) {
$files = System::find($source);
$files = PearSystem::find($source);
$files = array_reverse($files);
} else {
$files = array($source