This commit is contained in:
Julio Cesar Laura Avendaño
2016-04-07 13:17:33 -04:00
parent ef47f12129
commit 19c9fc572f

View File

@@ -557,7 +557,7 @@ class FilesManager
if ($path == '') {
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_FOR", array('prf_uid')));
}
$sFile = end(explode("/",$path));
$sFile = end(explode("/",str_replace('\\', '/',$path)));
$sPath = str_replace($sFile,'',$path);
$sSubDirectory = substr(str_replace($sProcessUID,'',substr($sPath,(strpos($sPath, $sProcessUID)))),0,-1);
$sMainDirectory = str_replace(substr($sPath, strpos($sPath, $sProcessUID)),'', $sPath);