This commit is contained in:
Roly Rudy Gutierrez Pinto
2015-11-25 11:19:43 -04:00
parent 3f45e0df02
commit d8d0c20794

View File

@@ -388,7 +388,7 @@ class FilesManager
if ($path == '') {
throw new \Exception(\G::LoadTranslation("ID_INVALID_VALUE_FOR", array('prf_uid')));
}
$sFile = end(explode(DIRECTORY_SEPARATOR,$path));
$sFile = basename($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);