PM-3655: End Event Email Message No envia correo en Windows

This commit is contained in:
marcelo.cuiza
2015-09-26 12:06:13 -04:00
parent e93d5edbce
commit 9e0852b92a

View File

@@ -581,7 +581,10 @@ class FilesManager
try {
$oProcessFiles = \ProcessFilesPeer::retrieveByPK($prfUid);
$fcontent = file_get_contents($oProcessFiles->getPrfPath());
$sFile = end(explode("/",$oProcessFiles->getPrfPath()));
$pth = $oProcessFiles->getPrfPath();
$pth = str_replace("\\","/",$pth);
$prfPath = explode("/",$pth);
$sFile = end($prfPath);
$path = $oProcessFiles->getPrfPath();
$sPath = str_replace($sFile,'',$path);
$sSubDirectory = substr(str_replace($sProcessUID,'',substr($sPath,(strpos($sPath, $sProcessUID)))),0,-1);