HOR-4605: Ouput_Document > The documents are not being exported with their extensions
This commit is contained in:
@@ -133,7 +133,7 @@ if (!$sw_file_exists) {
|
||||
$res['message'] = $info['basename'] . $ver . '.' . $ext;
|
||||
print G::json_encode( $res );
|
||||
} else {
|
||||
$nameFile = $info['basename'] . $ver . '.' . $ext;
|
||||
$nameFile = G::inflect($info['basename'] . $ver) . '.' . $ext;
|
||||
$licensedFeatures = &PMLicensedFeatures::getSingleton();
|
||||
$downloadStatus = false;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
@@ -159,7 +159,7 @@ if (!$sw_file_exists) {
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (!$downloadStatus) {
|
||||
G::streamFile( $realPath, $download, G::inflect($nameFile)); //download
|
||||
G::streamFile( $realPath, $download, $nameFile); //download
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user