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:
committed by
Julio Cesar Laura Avendaño
commit
2a4b0fed24
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user