diff --git a/workflow/engine/methods/cases/cases_ShowDocument.php b/workflow/engine/methods/cases/cases_ShowDocument.php index 73fbc0329..7f5e75a3a 100755 --- a/workflow/engine/methods/cases/cases_ShowDocument.php +++ b/workflow/engine/methods/cases/cases_ShowDocument.php @@ -110,6 +110,7 @@ if (! $sw_file_exists) { $nameFile = $oAppDocument->Fields['APP_DOC_FILENAME']; $licensedFeatures = &PMLicensedFeatures::getSingleton(); $downloadStatus = false; + /*----------------------------------********---------------------------------*/ if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) { G::LoadClass( "AppDocumentDrive" ); $drive = new AppDocumentDrive(); @@ -129,6 +130,7 @@ if (! $sw_file_exists) { } } } + /*----------------------------------********---------------------------------*/ if (!$downloadStatus) { G::streamFile( $realPath, $bDownload, $nameFile ); //download } diff --git a/workflow/engine/methods/cases/cases_ShowOutputDocument.php b/workflow/engine/methods/cases/cases_ShowOutputDocument.php index b300b5da8..2610f7c73 100755 --- a/workflow/engine/methods/cases/cases_ShowOutputDocument.php +++ b/workflow/engine/methods/cases/cases_ShowOutputDocument.php @@ -112,6 +112,7 @@ if (! $sw_file_exists) { $nameFile = $info['basename'] . $ver . '.' . $ext; $licensedFeatures = &PMLicensedFeatures::getSingleton(); $downloadStatus = false; + /*----------------------------------********---------------------------------*/ if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) { G::LoadClass( "AppDocumentDrive" ); $drive = new AppDocumentDrive(); @@ -132,6 +133,7 @@ if (! $sw_file_exists) { } } } + /*----------------------------------********---------------------------------*/ if (!$downloadStatus) { G::streamFile( $realPath, $download, $nameFile); //download }