HOR-4605: Ouput_Document > The documents are not being exported with their extensions

This commit is contained in:
Gustavo Silva
2018-05-29 16:34:42 -04:00
parent 166a376bc9
commit 5c2a771954

View File

@@ -133,7 +133,7 @@ if (!$sw_file_exists) {
$res['message'] = $info['basename'] . $ver . '.' . $ext; $res['message'] = $info['basename'] . $ver . '.' . $ext;
print G::json_encode( $res ); print G::json_encode( $res );
} else { } else {
$nameFile = $info['basename'] . $ver . '.' . $ext; $nameFile = G::inflect($info['basename'] . $ver) . '.' . $ext;
$licensedFeatures = &PMLicensedFeatures::getSingleton(); $licensedFeatures = &PMLicensedFeatures::getSingleton();
$downloadStatus = false; $downloadStatus = false;
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
@@ -159,7 +159,7 @@ if (!$sw_file_exists) {
} }
/*----------------------------------********---------------------------------*/ /*----------------------------------********---------------------------------*/
if (!$downloadStatus) { if (!$downloadStatus) {
G::streamFile( $realPath, $download, G::inflect($nameFile)); //download G::streamFile( $realPath, $download, $nameFile); //download
} }
} }
} }