diff --git a/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php b/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php index 27854d309..79aa9713e 100755 --- a/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php +++ b/workflow/engine/classes/triggers/class.pmAlfrescoFunctions.php @@ -272,19 +272,19 @@ function getFolderChildren($alfrescoServerUrl, $folderId, $user, $pwd) { * @param string | $docType | Type of document to be Uploaded * @param string | $user | Valid Admin username to connect to Alfresco server * @param string | $pwd | Valid Admin password to connect to Alfresco server - * @param string | $ubicacion | Path of document to be Uploaded + * @param string | $path | Path of document to be Uploaded * * @return string | $result | Response * */ -function uploadDoc($alfrescoServerUrl, $fileSource, $title, $description, $docType, $user, $pwd, $ubicacion = '') { +function uploadDoc($alfrescoServerUrl, $fileSource, $title, $description, $docType, $user, $pwd, $path = '') { $filep = fopen($fileSource,"r"); $fileLength = filesize($fileSource); $fileContent = fread($filep,$fileLength); $fileContent = base64_encode($fileContent); - $ubicacion = ($ubicacion != '') ? $ubicacion . PATH_SEP : $ubicacion; - $alfresco_url = "$alfrescoServerUrl/s/cmis/p/Sites/" . $ubicacion . "children"; + $path = ($path != '') ? $path . PATH_SEP : $path; + $alfresco_url = "$alfrescoServerUrl/s/cmis/p/Sites/" . $path . "children"; $xmlData = array(); $xmlData = ''.$title.''.$description.''.$fileContent.'cmis:document';