PM-3185 Public Files: No elimina por completo el archivo publico al momento de realizar click en DELETE
This commit is contained in:
@@ -468,7 +468,13 @@ class FilesManager
|
|||||||
|
|
||||||
if (file_exists($path) && !is_dir($path)) {
|
if (file_exists($path) && !is_dir($path)) {
|
||||||
unlink($path);
|
unlink($path);
|
||||||
}
|
} else {
|
||||||
|
$path = PATH_DATA_PUBLIC.$sProcessUID.DIRECTORY_SEPARATOR.$sFile;
|
||||||
|
|
||||||
|
if (file_exists($path) && !is_dir($path)) {
|
||||||
|
unlink($path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$rs = \ProcessFilesPeer::doDelete($criteria);
|
$rs = \ProcessFilesPeer::doDelete($criteria);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user